py-iec62056


Namepy-iec62056 JSON
Version 1.1.1.1 PyPI version JSON
download
home_pageNone
SummaryPackage for communicate with iec62056-21 Meters
upload_time2024-03-21 20:49:33
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseNone
keywords python iiot protocols
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python IEC62056 Meter Tools

## How to use ?

### Install

```shell
pip install py-iec62056
```

### Create SerialClient

```python
client = SerialClient(
    baudrate=19200,
    port="COM3",
    transport="serial",
    parity="E",
    bytesize=7,
    stopbits=1
)
```

### Read A meter identification

This return an identification message from the meter.
You must set the ack_stop to True if you don't want to meter to give the default table.

```python
result = client.read_tariff_identification("5987893", ack_stop=True)
```

### Read Table dataset

This will return a list of DataSet instance.
Raise error if Timeout.

```python
result = client.request(meter_address="5987893", table=7, timeout=30)
assert isinstance(result, TariffResponse)
for dataset in result.data:
    logging.info(f"{dataset}")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "py-iec62056",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "python, iiot, protocols",
    "author": null,
    "author_email": "Adrien Delhaye <adrien.delhaye@memoco.eu>",
    "download_url": "https://files.pythonhosted.org/packages/a9/60/d0b178bc0a2e2a2d7d8559651620f232869bccbd63c2699815bb5458b9d6/py_iec62056-1.1.1.1.tar.gz",
    "platform": null,
    "description": "# Python IEC62056 Meter Tools\r\n\r\n## How to use ?\r\n\r\n### Install\r\n\r\n```shell\r\npip install py-iec62056\r\n```\r\n\r\n### Create SerialClient\r\n\r\n```python\r\nclient = SerialClient(\r\n    baudrate=19200,\r\n    port=\"COM3\",\r\n    transport=\"serial\",\r\n    parity=\"E\",\r\n    bytesize=7,\r\n    stopbits=1\r\n)\r\n```\r\n\r\n### Read A meter identification\r\n\r\nThis return an identification message from the meter.\r\nYou must set the ack_stop to True if you don't want to meter to give the default table.\r\n\r\n```python\r\nresult = client.read_tariff_identification(\"5987893\", ack_stop=True)\r\n```\r\n\r\n### Read Table dataset\r\n\r\nThis will return a list of DataSet instance.\r\nRaise error if Timeout.\r\n\r\n```python\r\nresult = client.request(meter_address=\"5987893\", table=7, timeout=30)\r\nassert isinstance(result, TariffResponse)\r\nfor dataset in result.data:\r\n    logging.info(f\"{dataset}\")\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Package for communicate with iec62056-21 Meters",
    "version": "1.1.1.1",
    "project_urls": {
        "Homepage": "https://pypi.org/manage/project/iot-protocols"
    },
    "split_keywords": [
        "python",
        " iiot",
        " protocols"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9028f8131b6f5a96c4866533a692e1d374e799bede78c20efbf81d5ce76c026e",
                "md5": "7c1f6d46e8b2823610f32fafd9ce61d5",
                "sha256": "129abc5134ccaeb7474df6f4fc7e40b7b9607113e38a8f5bd48cc9783eae08d4"
            },
            "downloads": -1,
            "filename": "py_iec62056-1.1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7c1f6d46e8b2823610f32fafd9ce61d5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2588,
            "upload_time": "2024-03-21T20:49:31",
            "upload_time_iso_8601": "2024-03-21T20:49:31.657703Z",
            "url": "https://files.pythonhosted.org/packages/90/28/f8131b6f5a96c4866533a692e1d374e799bede78c20efbf81d5ce76c026e/py_iec62056-1.1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a960d0b178bc0a2e2a2d7d8559651620f232869bccbd63c2699815bb5458b9d6",
                "md5": "4dc475f1dde6d020b9f74ebf88296015",
                "sha256": "fafffc6e981977ee26d3f686c2e8bdbf64f573f3ee7f50f6908443ddbde5b272"
            },
            "downloads": -1,
            "filename": "py_iec62056-1.1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "4dc475f1dde6d020b9f74ebf88296015",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2518,
            "upload_time": "2024-03-21T20:49:33",
            "upload_time_iso_8601": "2024-03-21T20:49:33.048244Z",
            "url": "https://files.pythonhosted.org/packages/a9/60/d0b178bc0a2e2a2d7d8559651620f232869bccbd63c2699815bb5458b9d6/py_iec62056-1.1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-21 20:49:33",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "py-iec62056"
}
        
Elapsed time: 4.28368s