Skip to main content

A library that provides an ergonomic model for XML encoded text documents (e.g. with TEI-XML).

Project description

Latest version on PyPI Documentation Python versions License Black code style

delb is a library that provides an ergonomic model for XML encoded text documents (e.g. TEI-XML) for the Python programming language. It fills a gap for the humanities-related field of software development towards the excellent (scientific) communities in the Python ecosystem.

For a more elaborated discussion see the Design chapter of the documentation.


  • Loads documents from various source types. This is customizable and extensible.
  • XML DOM types are represented by distinct classes.
  • A completely type-annotated API.
  • Consistent design regarding names and callables’ signatures.
  • Shadows comments and processing instructions by default.
  • Querying with XPath and CSS expressions.
  • Applying XSL Transformations.

Development status

This project is currently developed as proof-of-concept. If you happen to depend on it, please notify me to consider this in future.

You’re invited to submit tests that reflect desired use cases or are merely of theoretical nature. Of course, any kind of proposals for or implementations of improvements are welcome as well.


  • gain insights from usage experience
  • implement the API in Rust
  • provide bindings for Python and Javascript to the Rust implementation, while nurturing the lxml-based implementation as reference for some time
  • be finished before the Digital Humanities community realizes how to foster a viable software ecosystem and fund such efforts

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 delb, version 0.2b2
Filename, size File type Python version Upload date Hashes
Filename, size delb-0.2b2-py3-none-any.whl (43.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size delb-0.2b2.tar.gz (38.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page