Get your consumption data from your Enedis account (www.enedis.fr)
Project description
Get your consumption data from your Enedis account (www.enedis.fr)
In order to use the library, you need an account on https://datahub-enedis.fr/. You need to create a Data Connect Application and as of May 2020 you will get your client_id by mail and your client_secret by SMS after a week or so… With these credentials, you can only access the Sandbox environment… You need to sign a contract and probably wait more to get Production credentials…
The library uses requests and requests_oauthlib to cope with the OAuth 2.0 protocol. It uses an AbstractAuth class to let a developer override the refresh token function and route it via their own external service. It also let the storage of the token between sessions to the developer.
Installation
The easiest way to install the library is using pip:
pip install pylinky
You can also download the source code and install it manually:
cd /path/to/pylinky/ python setup.py install
Usage
Print your current data
pylinky -c <client_id> -s <client_secret> -u <redirect_url>
Dev env
create virtual env and install requirements
virtualenv -p /usr/bin/python3.5 env pip install -r requirements.txt
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
Built Distributions
File details
Details for the file pylinky-0.5.0.tar.gz
.
File metadata
- Download URL: pylinky-0.5.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 193f98a2dbdf5fb18f1cfdbcb63c90b6c936b19b1a58371565db545aed076b31 |
|
MD5 | 060da5cf80843bb390f151c6b563eb8b |
|
BLAKE2b-256 | e9a2d5e402389ed21c69477e7eca0470e3004f647f195eac18caf9ceca39a4f8 |
File details
Details for the file pylinky-0.5.0-py3.6.egg
.
File metadata
- Download URL: pylinky-0.5.0-py3.6.egg
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 408f8989116cf7cea62ef73debc46400cde021342fe80a92a40c83020f2c5dfb |
|
MD5 | daec77d2ec02b40e8f56d07759025d7e |
|
BLAKE2b-256 | 00392c804085faabd9d2a3ae37ead0ce41149039fce2e6913ff55762b5a010fb |
File details
Details for the file pylinky-0.5.0-py3.5.egg
.
File metadata
- Download URL: pylinky-0.5.0-py3.5.egg
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 325ada5fbb84e71c6bbf2b61cd2b30f263b5b2c2664823ac6b9eef2aeaeb67a7 |
|
MD5 | 848430940e63a9c65e7d03d6c693f73f |
|
BLAKE2b-256 | 01a4bc8745adcf2d691500b1ef82efde7d2160b0a0fcc4823f86a57a855cf17c |
File details
Details for the file pylinky-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: pylinky-0.5.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e648b765593b5b5e04c382449547ffa500fac84f0f3562da535878b52c6b8fa3 |
|
MD5 | 0995402f68a1d613abe9e8be5cd16474 |
|
BLAKE2b-256 | 972ee11aba5b2dc7b99086566a565a8e8779b3a495549235eecf614bdaeee5f2 |