ENTSO-E ECP software MADES SOAP API implementation in python
Project description
ECP
Python implementation of ECP* SOAP MADES API
*ENTSO-E Energy Communication Platform (ECP) Software - https://www.entsoe.eu/data/ECP/
Installation
pip install ecp-api
or
pip install --user ecp-api
or
python -m pip install --user ecp-api
Usage
Initialise
import ECP
client = ECP.Client("https://ecp.elering.sise")
Send message
with open("message.xml", "rb") as loaded_file:
message_ID = client.send_message("10V000000000011Q", "RIMD", loaded_file.read())
Check message status
status = client.check_message_status(message_ID)
Retrieve message
message = client.receive_message()
Confirm retrieval of message
client.confirm_received_message(message.receivedMessage.messageID)
Save message on drive
in case of excel use .xlsx and in case of PDF use .pdf and etc
with open("report.xml", 'wb') as report_file:
report_file.write(message.receivedMessage.content)
Save message as file like object in memory
file_like_object = io.BytesIO(message.receivedMessage.content)
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
ecp-api-0.0.7.tar.gz
(20.6 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
ecp_api-0.0.7-py3-none-any.whl
(12.5 kB
view details)
File details
Details for the file ecp-api-0.0.7.tar.gz.
File metadata
- Download URL: ecp-api-0.0.7.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c2d84778ced79238ad624f9915c59259c559ef26ee35245db8f5553f10da6b8
|
|
| MD5 |
d42b8c945ed7bd87cf0d70744b9816df
|
|
| BLAKE2b-256 |
befdeed375b7a292584920ab9e3b6fe3864a8f56bd3491a44bdef50e2e9cfc74
|
File details
Details for the file ecp_api-0.0.7-py3-none-any.whl.
File metadata
- Download URL: ecp_api-0.0.7-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bee15a3d89465ccc648e323750990607d505cb4470afea9ed2eb04e8f484f9f9
|
|
| MD5 |
99a7bf74aa63d5c5974e54d09fab9071
|
|
| BLAKE2b-256 |
2eefd50238ac749b62754f55ddc729f123ba100bc3347045c626757a0823150f
|