pyLinky
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
Metadata
Release files for pylinky 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylinky-0.5.0.tar.gz | 7.0 kB | Without provenance | Details for pylinky-0.5.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylinky-0.5.0-py3.6.egg | Legacy Egg format | - | - | Details for pylinky-0.5.0-py3.6.egg |
| pylinky-0.5.0-py3.5.egg | Legacy Egg format | - | - | Details for pylinky-0.5.0-py3.5.egg |
| pylinky-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for pylinky-0.5.0-py3-none-any.whl |
Total release size: 36.7 kB
Release files / pylinky-0.5.0.tar.gz
| Download URL | pylinky-0.5.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
193f98a2dbdf5fb18f1cfdbcb63c90b6c936b19b1a58371565db545aed076b31
|
|
BLAKE2b-256 checksum How to use checksums |
e9a2d5e402389ed21c69477e7eca0470e3004f647f195eac18caf9ceca39a4f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pylinky-0.5.0-py3.6.egg
| Download URL | pylinky-0.5.0-py3.6.egg |
|---|---|
| Size | 8.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
408f8989116cf7cea62ef73debc46400cde021342fe80a92a40c83020f2c5dfb
|
|
BLAKE2b-256 checksum How to use checksums |
00392c804085faabd9d2a3ae37ead0ce41149039fce2e6913ff55762b5a010fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pylinky-0.5.0-py3.5.egg
| Download URL | pylinky-0.5.0-py3.5.egg |
|---|---|
| Size | 8.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
325ada5fbb84e71c6bbf2b61cd2b30f263b5b2c2664823ac6b9eef2aeaeb67a7
|
|
BLAKE2b-256 checksum How to use checksums |
01a4bc8745adcf2d691500b1ef82efde7d2160b0a0fcc4823f86a57a855cf17c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pylinky-0.5.0-py3-none-any.whl
| Download URL | pylinky-0.5.0-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e648b765593b5b5e04c382449547ffa500fac84f0f3562da535878b52c6b8fa3
|
|
BLAKE2b-256 checksum How to use checksums |
972ee11aba5b2dc7b99086566a565a8e8779b3a495549235eecf614bdaeee5f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pylinky 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.