Teleinfo python library
Project description
pyticcom - EDF teléinformation Python library
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())
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
pyticcom-1.2.tar.gz
(4.4 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
pyticcom-1.2-py3-none-any.whl
(11.5 kB
view details)
File details
Details for the file pyticcom-1.2.tar.gz.
File metadata
- Download URL: pyticcom-1.2.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e57e57b2b4991bad28977fbffca4d8f5f089f45b102d4e8a51790734c6c72bb
|
|
| MD5 |
43972e982e16ac47d4cc319c85ecd072
|
|
| BLAKE2b-256 |
4e56729f89a00c0848aa55b5923f82d663bf0feb30ccf889d09d742df0876765
|
File details
Details for the file pyticcom-1.2-py3-none-any.whl.
File metadata
- Download URL: pyticcom-1.2-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04e4c69af950230cfd685549b6d0bf3b5a0a9c1ed37fc5690a99fe0eb89ffa4b
|
|
| MD5 |
aee5463fb63561092c1dd737317ac445
|
|
| BLAKE2b-256 |
9a494f02c0c42f3a417d0afb7267101695294bd812f6675dc25b53b0085c8ee5
|