Package for communicate with iec62056-21 Meters
Project description
Python IEC62056 Meter Tools
How to use ?
Install
pip install py-iec62056
Create SerialClient
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.
result = client.read_tariff_identification("5987893", ack_stop=True)
Read Table dataset
This will return a list of DataSet instance. Raise error if Timeout.
result = client.request(meter_address="5987893", table=7, timeout=30)
assert isinstance(result, TariffResponse)
for dataset in result.data:
logging.info(f"{dataset}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_iec62056-1.1.1.1.tar.gz
(2.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_iec62056-1.1.1.1.tar.gz.
File metadata
- Download URL: py_iec62056-1.1.1.1.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fafffc6e981977ee26d3f686c2e8bdbf64f573f3ee7f50f6908443ddbde5b272
|
|
| MD5 |
4dc475f1dde6d020b9f74ebf88296015
|
|
| BLAKE2b-256 |
a960d0b178bc0a2e2a2d7d8559651620f232869bccbd63c2699815bb5458b9d6
|
File details
Details for the file py_iec62056-1.1.1.1-py3-none-any.whl.
File metadata
- Download URL: py_iec62056-1.1.1.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
129abc5134ccaeb7474df6f4fc7e40b7b9607113e38a8f5bd48cc9783eae08d4
|
|
| MD5 |
7c1f6d46e8b2823610f32fafd9ce61d5
|
|
| BLAKE2b-256 |
9028f8131b6f5a96c4866533a692e1d374e799bede78c20efbf81d5ce76c026e
|