DDEX Reader for Python
This project allows you to read DDEX files into friendly Python data types. XML files are decoded using the PyXB library.
Keep in mind that this is a fairly low level library that only aims at making DDEX files easier to read using Python. Some DDEX data structures expose lists containing only one element, and some value like UpdateIndicator are not cast as booleans.
Free software: MIT license
Documentation: https://ddexreader.readthedocs.org.
Repository: https://github.com/Trax-air/ddexreader
Features
Open an XML file into a DDEX data structure generated by pyxb corresponding to the DDEX version.
Parse this DDEX data structure into a Python dict.
Supported DDEX versions
3.1.2
3.2 (untested)
3.3
3.4
3.4.1
3.5
3.5.1
3.6
Version 3.7 is causing issues with PyXB.
Quickstart
from ddexreader import open_ddex, ddex_to_dict xml_path = '/path/to/my/ddex_file.xml' ddex = open_ddex(xml_path) ddex_dict = ddex_to_dict(ddex)
How to add more DDEX definitions
After installing pyxb on your (unix) system, enter:
pyxbgen -u [the url to the definition file]
History
0.1.1 (2015-09-14)
Added support for ERN 3.1.2
0.1.0 (2015-01-11)
First release on PyPI.
Metadata
Release files for ddexreader 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ddexreader-0.1.1.zip | 2.0 MB | Without provenance | Details for ddexreader-0.1.1.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ddexreader-0.1.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for ddexreader-0.1.1-py2.py3-none-any.whl |
Total release size: 4.0 MB
Release files / ddexreader-0.1.1.zip
| Download URL | ddexreader-0.1.1.zip |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a90e9d4c1781c3d6373150903fccf4a9679e334c7c330af56afbc460b2e82eb
|
|
BLAKE2b-256 checksum How to use checksums |
4307ba769184e3f699864aaa1ab86280570c44db53ae27d461b80702095ce4ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ddexreader-0.1.1-py2.py3-none-any.whl
| Download URL | ddexreader-0.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
60f3c454eb4045f3fa7160ebf8d60e0cbe3cd3ead690d4b3c656248d97538d5d
|
|
BLAKE2b-256 checksum How to use checksums |
61f88561a84145e43638605ba1f3619a14145afe6f77143435d3d1b43a73e146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ddexreader 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.