Skip to main content

EDX MADES SOAP API implementation in python

Project description

EDX

Python implementation of EDX SOAP MADES API (ENTSO-E Data Exchange Software - https://www.entsoe.eu/data/edx/)

Installation

pip install EDX

or

pip install --user EDX

or

python -m pip install --user EDX

Usage

Initialise

import EDX

service = EDX.Client("https://edx.elering.sise")

create_client is depricated

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EDX-0.0.16.tar.gz (20.6 kB view hashes)

Uploaded Source

Built Distribution

EDX-0.0.16-py3-none-any.whl (12.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page