Skip to main content

XPath-based XML data binding, with Django form support

Project description

PyPI License PyPI downloads
Documentation Status
travis-ci build Code Coverage Code Climate

eulxml is a Python module that provides utilities and classes for interacting with XML that allow the definition of re-usable XML objects that can be accessed, updated and created as standard Python types, and a form component for editing XML with Django forms.

eulxml.xpath provides functions and classes for parsing XPath expressions using PLY.

eulxml.xmlmap makes it easier to map XML to Python objects in a nicer, more pythonic and object-oriented way than typical DOM access usually provides. XML can be read, modified, and even created from scratch (in cases where the configured XPath is simple enough to determine the nodes that should be constructed).

eulxml.forms provides Django Form objects that use eulxml.xmlmap.XmlObject instances as the basis and data instance for the form, with the goal of making it easy to edit XML content via web forms.


eulxml depends on PLY and lxml.

eulxml.forms requires and was designed to be used with Django, although Django is not required for installation and use of the non-form components of eulxml.

Contact Information

eulxml was created by the Digital Programs and Systems Software Team of Emory University Libraries.


eulxml is distributed under the Apache 2.0 License.

Development History

For instructions on how to see and interact with the full development history of eulxml, see eulcore-history.

Developer notes

As of version 1.1, eulxml provides an XML catalog for loading schemas referenced by included XmlObject instances. Requests is required for downloading schemas, but it is not a dependency of eulxml. The catalog and schemas will be included in distributed releases, but if you want to use the catalog when installing directly from GitHub you can use a normal pip install and then run:

python -c 'from eulxml.catalog import generate_catalog; generate_catalog()'

To install dependencies for your local check out of the code, run pip install in the eulxml directory (the use of virtualenv is recommended):

pip install -e .

If you want to run unit tests or build sphinx documentation, you will also need to install development dependencies:

pip install -e . "eulxml[dev]"

To run all unit tests:

nosetests   # for normal development
nosetests --with-coverage --cover-package=eulxml --cover-xml --with-xunit   # for continuous integration

To run unit tests for a specific module, use syntax like this:

nosetests test/

To generate sphinx documentation:

cd doc
make html

Project details

Download files

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

Files for eulxml, version 1.1.3
Filename, size File type Python version Upload date Hashes
Filename, size eulxml-1.1.3.macosx-10.10-intel.tar.gz (254.9 kB) File type Dumb Binary Python version any Upload date Hashes View
Filename, size eulxml-1.1.3-py2.py3-none-any.whl (216.6 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size eulxml-1.1.3.tar.gz (251.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page