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.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.tar.gz.
File metadata
- Download URL: py_iec62056-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 |
4f2b1dbacecd5f04b1a5c21c791f93b7ef08c1ec76236d9d7fce9679eea12abd
|
|
| MD5 |
8dc2388a1baa5262ee93c8e6443000b6
|
|
| BLAKE2b-256 |
9f061206870b7588cf485ff1130c09db9ff9d7f27a53ab848d7592b7401a2f8f
|
File details
Details for the file py_iec62056-1.1.1-py3-none-any.whl.
File metadata
- Download URL: py_iec62056-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 |
b64a7e727ad371ea1601a6259bf9090be1681a7608c184acf4c0fb9e9a219b58
|
|
| MD5 |
8b64931e2c622cf0cb2a837b2d92cef0
|
|
| BLAKE2b-256 |
ce0d9bb0fbfb06a4cd1d296e3a082cb83ecd7b302e71b52cb8b8cdea61da1a6e
|