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.17.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edx-0.0.17-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file edx-0.0.17.tar.gz.

File metadata

  • Download URL: edx-0.0.17.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for edx-0.0.17.tar.gz
Algorithm Hash digest
SHA256 3e9d686141f0364c847d35ea20bf945cea784bf341528a8eea302a27359b12dc
MD5 c4283f5fcac494c5acd4298730dad946
BLAKE2b-256 a565d8f755c4effd09c8cfaf3560ce140ec9f21849c95a344621ba2d21b571d9

See more details on using hashes here.

File details

Details for the file edx-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: edx-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for edx-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 54efc43a17ec9b30820638b2ab921396e30156810331838279bf91d5da02e70d
MD5 c0d126429e16ea707759fdc931985d54
BLAKE2b-256 4e138c55155d109ea94542316168a0eb4325f20300d4587b5ee698ad72ea8a63

See more details on using hashes here.

Supported by

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