Python client for Enedis SGE web-service
Project description
lowatt-enedis
A command-line tool and Python library to access Enedis SGE SOAP web-services, provided by LOWATT.
Disclaimer: this package is NOT affiliated to Enedis, but provided by Lowatt in case it could be useful to other users of the SGE web-services provided by Enedis.
Licensing
It is published under the terms of the GPL 3 license.
Installation
pip install lowatt-enedis
Command line usage
See lowatt-enedis --help for CLI usage. You'll be able to call the services
controlled using options and see the SOAP response. You can take a look at
doc/homologation.md for a sample session to go through Enedis'homologation
process.
Some flags are required by all or most of the commands so they can be configured once by their respective environment variables.
| Option | Environment variable |
|---|---|
--cert-file |
ENEDIS_CERT_FILE |
--key-file |
ENEDIS_KEY_FILE |
--login |
ENEDIS_LOGIN |
--contrat |
ENEDIS_CONTRAT |
Python library usage
Here is a sample code to access to the ConsultationMesuresDetaillees from
Python code :
import datetime
import lowatt_enedis
import lowatt_enedis.services
config = {
'login': 'you@example.com',
'certificateFile': 'fullchain.pem',
'keyFile': 'privkey.pem',
'prm': '30000123456789',
}
# get client for the 'details' service using appropriate client
# certificate and key
client = lowatt_enedis.get_client(
lowatt_enedis.COMMAND_SERVICE['details'][0],
config['certificateFile'], config['keyFile'],
)
# actually call the web to get values for the past week
resp = lowatt_enedis.services.point_detailed_measures(client, {
'login': config['login'],
'prm': config['prm'],
'type': 'COURBE',
'courbe_type': 'PA',
'corrigee': True,
'from': datetime.date.today() - datetime.timedelta(days=7),
'to': datetime.date.today(),
})
# get a list of (UTC timestamp, value(W))
data = lowatt_enedis.services.measures_resp2py(resp)
Contributions
Contribution are welcome through the Github repository.
Feel free to contact for more info by writing at info@lowatt.fr.
Sponsors
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 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
File details
Details for the file lowatt_enedis-3.3.0.tar.gz.
File metadata
- Download URL: lowatt_enedis-3.3.0.tar.gz
- Upload date:
- Size: 166.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb85b739a7f82275e6efe3c98f8d79a03c12c74052741aab512d6b97f82a357
|
|
| MD5 |
6754c8f404b05ebd591d9cdd93d20b37
|
|
| BLAKE2b-256 |
71c2639604b8550b9dc0041a7a49bcf72bb2a00aeb8f592480dcbe9694d27069
|
Provenance
The following attestation bundles were made for lowatt_enedis-3.3.0.tar.gz:
Publisher:
release.yml on lowatt/lowatt-enedis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lowatt_enedis-3.3.0.tar.gz -
Subject digest:
1eb85b739a7f82275e6efe3c98f8d79a03c12c74052741aab512d6b97f82a357 - Sigstore transparency entry: 1293447412
- Sigstore integration time:
-
Permalink:
lowatt/lowatt-enedis@e5e40d6341eb15dd9fe17025821fa8464b97ec67 -
Branch / Tag:
refs/tags/3.3.0 - Owner: https://github.com/lowatt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e5e40d6341eb15dd9fe17025821fa8464b97ec67 -
Trigger Event:
release
-
Statement type:
File details
Details for the file lowatt_enedis-3.3.0-py3-none-any.whl.
File metadata
- Download URL: lowatt_enedis-3.3.0-py3-none-any.whl
- Upload date:
- Size: 187.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c58367c71565c1d3186f64c985224152a93d32f00614f8a5b2e54ef23fb8526b
|
|
| MD5 |
b2a518945e88b541e92895611117e775
|
|
| BLAKE2b-256 |
9ffb01c3e62a08006d13a4920999103be7a3e9ec54de9b64de646ad23f2dddc7
|
Provenance
The following attestation bundles were made for lowatt_enedis-3.3.0-py3-none-any.whl:
Publisher:
release.yml on lowatt/lowatt-enedis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lowatt_enedis-3.3.0-py3-none-any.whl -
Subject digest:
c58367c71565c1d3186f64c985224152a93d32f00614f8a5b2e54ef23fb8526b - Sigstore transparency entry: 1293447417
- Sigstore integration time:
-
Permalink:
lowatt/lowatt-enedis@e5e40d6341eb15dd9fe17025821fa8464b97ec67 -
Branch / Tag:
refs/tags/3.3.0 - Owner: https://github.com/lowatt
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e5e40d6341eb15dd9fe17025821fa8464b97ec67 -
Trigger Event:
release
-
Statement type: