Python implementation of EDX SOAP MADES API (ENTSO-E Data Exchange Software - https://www.entsoe.eu/data/edx/)
pip install EDX
or
pip install --user EDX
or
python -m pip install --user EDX
import EDX
service = EDX.Client("https://edx.elering.sise")
create_client is depricated
with open("message.xml", "rb") as loaded_file:
message_ID = service.send_message("10V000000000011Q", "RIMD", loaded_file.read())
status = service.check_message_status(message_ID)
message = service.receive_message()
service.confirm_received_message(message.receivedMessage.messageID)
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)
file_like_object = io.BytesIO(message.receivedMessage.content)