Skip to main content

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 py-iec62056 1.1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-iec62056 1.1.1.1
File Size Uploaded
py_iec62056-1.1.1.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-iec62056 1.1.1.1
File Interpreter ABI Platform
py_iec62056-1.1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / py_iec62056-1.1.1.1.tar.gz

Download URL py_iec62056-1.1.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fafffc6e981977ee26d3f686c2e8bdbf64f573f3ee7f50f6908443ddbde5b272
BLAKE2b-256 checksum
How to use checksums
a960d0b178bc0a2e2a2d7d8559651620f232869bccbd63c2699815bb5458b9d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release files / py_iec62056-1.1.1.1-py3-none-any.whl

Download URL py_iec62056-1.1.1.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
129abc5134ccaeb7474df6f4fc7e40b7b9607113e38a8f5bd48cc9783eae08d4
BLAKE2b-256 checksum
How to use checksums
9028f8131b6f5a96c4866533a692e1d374e799bede78c20efbf81d5ce76c026e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.1.1.1 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page