Skip to main content

A simple API for key atome electricity consumption

Project description

KeyAtome PyPi

GitHub release

Get your energy consumption data from Atome, a Linky-compatible device made by Total/Direct-Energie.

Installing

pip install pykeyatome

Use

The __main__.py is provided to show an example of use.

3 types of function provided by client.py in AtomeClient class:

  • login : to be logged to the server
  • get_live : to retrieve live statistics (instant power)
  • get_consumption(period) : to retrieve the consumption since a period (day/week/month/year)

Acknowledgments

Breaking change

V1.2.0 Since this version PyAtomeError exception is no more used. Instead login return False if error , and live/consumption return None

V1.3.0 Login return None if error

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pykeyatome-1.3.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

pykeyatome-1.3.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pykeyatome-1.3.1.tar.gz.

File metadata

  • Download URL: pykeyatome-1.3.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for pykeyatome-1.3.1.tar.gz
Algorithm Hash digest
SHA256 c454bfec3d9f1f6740ae987e624ce0aea2be89f58cdbd5cf8df194da8d93a030
MD5 694e7910261e4dda617788adfdf5b83a
BLAKE2b-256 44da681bd57e4686e419b65eb981a3601641e383a9a5dc336e8dea0a3d34937a

See more details on using hashes here.

File details

Details for the file pykeyatome-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: pykeyatome-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2

File hashes

Hashes for pykeyatome-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea68c8d57f6ad48a46c141adf5a2cf34dc544d4167496adfb918d0e13d1848a2
MD5 1f352c29ad612024cf9fe78b0e5043ce
BLAKE2b-256 985d5f7dc14a260e0768c0bcf6aa1146228f036db20e8436dc6e17257094141f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page