ddexreader-0.1.1
توضیحات
This small project allows you to decode DDEX files into friendly Python data types.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ddexreader-0.1.1 |
| نام | ddexreader |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Flavian Hautbois |
| ایمیل نویسنده | flavian@trax-air.com |
| آدرس صفحه اصلی | https://github.com/Trax-air/ddexreader |
| آدرس اینترنتی | https://pypi.org/project/ddexreader/ |
| مجوز | MIT |
======================
DDEX Reader for Python
======================
.. image:: https://travis-ci.org/Trax-air/ddexreader.svg
:target: https://travis-ci.org/traxair/ddexreader
.. image:: https://img.shields.io/pypi/v/ddexreader.svg
:target: https://pypi.python.org/pypi/ddexreader
.. image:: https://coveralls.io/repos/Trax-air/ddexreader/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/Trax-air/ddexreader?branch=master
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.
نحوه نصب
نصب پکیج whl ddexreader-0.1.1:
pip install ddexreader-0.1.1.whl
نصب پکیج tar.gz ddexreader-0.1.1:
pip install ddexreader-0.1.1.tar.gz