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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file EDX-0.0.16.tar.gz.

File metadata

  • Download URL: EDX-0.0.16.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

Hashes for EDX-0.0.16.tar.gz
Algorithm Hash digest
SHA256 c48b98eb1e9c4343773631b436063c318c13948dda31b8f0691bcfa4052ae2c9
MD5 ff43c42022d6c38b34fa1ce29272a7c3
BLAKE2b-256 8f3587eeeeee86d8da9988faf99a77852dcb743c7b42408134dfa6a29bf0cefe

See more details on using hashes here.

File details

Details for the file EDX-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: EDX-0.0.16-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

Hashes for EDX-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0a12bdf933c8f7ac63eb03e48b6a6442cda8ff9ae76b79eab57eb7ce36143d8a
MD5 1b0fcaf153167f4b7194b87caeef6a7a
BLAKE2b-256 ff4bf7e4e3d0290cc7741877865fd8d9aaf1d18f8a1b1905477739f01043e69f

See more details on using hashes here.

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