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 mypy-checked Black code style

delb is a library that provides an ergonomic model to process 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 (academic & scientific) communities in the Python ecosystem.

For a more elaborated discussion on the project’s motivation see the Design chapter of the documentation.

Features & paradigms

  • XML DOM types are represented by distinct classes.

  • A completely type-annotated API with consistent naming and callables’ signatures.

  • Loads documents from various source types.

  • Easy, simply filterable traversing of a document in all directions staring from any node.

  • Shadows comments and processing instructions by default.

  • Querying with XPath and CSS expressions.

  • Serializations that may fulfil the promise of XML’s well-readability to an unwitnessed degree and even don’t mess up whitespace.

  • Optional whitespace handling per TEI recommendation.

  • Various customization opportunities (document loaders & representations, XML parser, XPath functions).

  • It’s well tested.

Development status

While the software is still to be considered in beta phase, the interfaces are mostly stable and the implementation is thoroughly tested. Future changes shall be introduced in a non-breaking fashion that allows gradual updates. New features will be marked as experimental until they’ve proven to be stable. 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.

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

delb-0.6.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delb-0.6-py3-none-any.whl (93.5 kB view details)

Uploaded Python 3

File details

Details for the file delb-0.6.tar.gz.

File metadata

  • Download URL: delb-0.6.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for delb-0.6.tar.gz
Algorithm Hash digest
SHA256 4db2ab81e40aef1a50fe84f9facc18aa5b1ead117d07520cf37f3c56cd23fbed
MD5 dadf251c3cc635e27d71c9757e0a24e0
BLAKE2b-256 bb8e7114bdfd23669613acf2e6081f8ac09e3de519c1609147d2a57ad2c702b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for delb-0.6.tar.gz:

Publisher: publish.yml on delb-xml/delb-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file delb-0.6-py3-none-any.whl.

File metadata

  • Download URL: delb-0.6-py3-none-any.whl
  • Upload date:
  • Size: 93.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for delb-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0efd6253291608e0af1ae8b5515b69a33765120471126098be93ec11d29d0c
MD5 b341b354159dc772a2fae1fcbe69e5ee
BLAKE2b-256 c5468358a8e31859c606195d1af31b66798f000b7b19b7c87e11369e092ae43f

See more details on using hashes here.

Provenance

The following attestation bundles were made for delb-0.6-py3-none-any.whl:

Publisher: publish.yml on delb-xml/delb-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page