Skip to main content

pyticcom - EDF teléinformation Python library

PyPI version

This library allows you to retrieve teleinfo using serial port device (USBTICLCV2).

Example

import asyncio

from pyticcom import Teleinfo, Mode
from scanner import ComScanner

scanner = ComScanner()
serials = scanner.scan()
for serial in serials:
    print(serial.device)

async def main():
    with Teleinfo('/dev/USB0', mode=Mode.HISTORY) as teleinfo:
        while True:
            frame = await teleinfo.read_frame()
            print("{} groups found".format(len(frame.groups)))
            for group in frame.groups:
                print(group)
            await asyncio.sleep(1)


loop = asyncio.get_event_loop()
result = loop.run_until_complete(main())

Metadata

Release files for pyticcom 1.2

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

Source distribution (sdist)

Source distribution for pyticcom 1.2
File Size Uploaded
pyticcom-1.2.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyticcom 1.2
File Interpreter ABI Platform
pyticcom-1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / pyticcom-1.2.tar.gz

Download URL pyticcom-1.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5e57e57b2b4991bad28977fbffca4d8f5f089f45b102d4e8a51790734c6c72bb
BLAKE2b-256 checksum
How to use checksums
4e56729f89a00c0848aa55b5923f82d663bf0feb30ccf889d09d742df0876765
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.6

Release files / pyticcom-1.2-py3-none-any.whl

Download URL pyticcom-1.2-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04e4c69af950230cfd685549b6d0bf3b5a0a9c1ed37fc5690a99fe0eb89ffa4b
BLAKE2b-256 checksum
How to use checksums
9a494f02c0c42f3a417d0afb7267101695294bd812f6675dc25b53b0085c8ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.6

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.1

2 release files

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