semvec/pypi-packages huggingface dataset:
mozperftest-tools 0.4.3
This repository is a collection of various tools that are useful forthe things we do in Performance and Performance Testing.
Requires Python: >=3.6
Keywords: mozilla

# mozperftest_tools

This repository is a collection of various tools that are useful for the things we do in Performance and Performance Testing. You can find the most interesting ones documented below.

## Setup

`pip install mozperftest-tools`

## Browsertime Side-by-Side Video Comparisons

The `side_by_side.py` tool can be used to generate a side-by-side comparion of two browsertime videos. This can be useful for determining if a regression/improvement is legitimate or not. It uses the similarity metric which is calculated using video histograms. See below for more information.

```
from mozperftest_tools.side_by_side import SideBySide

s = SideBySide("welcome-linux/")
s.run(
    test_name="browsertime-first-install-firefox-welcome-fis-e10s",
    platform="test-linux1804-64-shippable-qr/opt-browsertime-first-install-firefox-welcome-fis-e10s",
    base_branch="autoland",
    base_revision="a9fcab1e5680054879d4d9547b0a36f6e15b1216",
    new_branch="autoland",
    new_revision="962cc435d9fbdd0b69e678bdc62a041f7164c7f4"
)
```
pyecodevices 1.7.0
Get information from GCE Eco-Devices.
Requires Python: >=3.8

# pyecodevices - Python GCE Eco-Devices

Get information from GCE Eco-Devices

## Parameters

- `host`: ip or hostname
- `port`: (default: 80)
- `username`: if authentication enabled on Eco-Devices
- `password`: if authentication enabled on Eco-Devices
- `request_timeout`: (default: 10)

## Properties

- `host`: return the host
- `version`: return the firmware version
- `mac_address`: return the mac address

## Methods

- `get_info`: get properties from the API
- `global_get`: return all data from the API
- `get_t1`: return values of input T1
- `get_t2`: return values of input T2
- `get_c1`: return values of input C1
- `get_c2`: return values of input C2

## Example

```python
from pyecodevices import EcoDevices

import asyncio


async def main():
    async with EcoDevices('192.168.1.239', '80', "username", "password") as ecodevices:
        await ecodevices.get_info()
        print("firmware version:", ecodevices.version)
        data = await ecodevices.global_get()
        print("all values:", data)
        data = await ecodevices.get_t1()
        print("teleinfo 1:", data)
        print("current:", data["current"], "VA")


if __name__ == "__main__":
    loop = asyncio.new_event_loop()
    asyncio.set_event_loop(loop)
    loop.run_until_complete(main())

```