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}")
Metadata
Release files for iec62056-protocol 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iec62056-protocol-1.0.1.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iec62056_protocol-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / iec62056-protocol-1.0.1.tar.gz
| Download URL | iec62056-protocol-1.0.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c89ef9295c0ceb537ab69621aad1d4f6fc8acbcc6c2ec74f182c5c601aea6a4
|
|
BLAKE2b-256 checksum How to use checksums |
8cbedd0dda8cd79ff04dac983a1fac628a7e37f60a03917d02f1f00ff88cf66f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|
Release files / iec62056_protocol-1.0.1-py3-none-any.whl
| Download URL | iec62056_protocol-1.0.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c69918f32c0dc3d1e67180ebd3705ac74ae1664854d647adfe0e235095005133
|
|
BLAKE2b-256 checksum How to use checksums |
16000645e88f0f5e6cb8548a23496ae4a612bfe9a9f72c3787762eb381ef3d21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.0
|