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-api as ECP
service = ECP.create_client("https://ecp.elering.sise")
Send message
with open("message.xml", "rb") as loaded_file:
message_ID = service.send_message("10V000000000011Q", "RIMD", loaded_file.read())
Check message status
status = service.check_message_status(message_ID)
Retrieve message
message = service.receive_message()
Confirm retrieval of message
service.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.3.tar.gz
(19.3 kB
view hashes)
Built Distribution
ecp_api-0.0.3-py3-none-any.whl
(11.2 kB
view hashes)