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.

Features

  • 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.

Testimonials

Kurt Raschke noted in 2010:

In a DOM-based implementation, it would be relatively easy […]
But lxml doesn't use text nodes; instead it uses and properties to hold text
content.

ROADMAPish

  • 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.

Source Distribution

delb-0.1.2rc0.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

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

delb-0.1.2rc0-py3-none-any.whl (37.8 kB view details)

Uploaded Python 3

File details

Details for the file delb-0.1.2rc0.tar.gz.

File metadata

  • Download URL: delb-0.1.2rc0.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/5.0.0-27-generic

File hashes

Hashes for delb-0.1.2rc0.tar.gz
Algorithm Hash digest
SHA256 42aa03407254ac02d92c0ce2b93e7bcfdc897eb440fc3b632e2e64b29aface00
MD5 1bcd8aea3d3d8eaa454d982901a9fa0e
BLAKE2b-256 5f84a78c7a37405695953079a6746498dd90bdba3b94de42ac0d61c9184d7de9

See more details on using hashes here.

File details

Details for the file delb-0.1.2rc0-py3-none-any.whl.

File metadata

  • Download URL: delb-0.1.2rc0-py3-none-any.whl
  • Upload date:
  • Size: 37.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Linux/5.0.0-27-generic

File hashes

Hashes for delb-0.1.2rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e292679091f6adbadd0847349aa175bfe345e390ffa775d8524ffcd149e34d8
MD5 6c9a6cd0b2d7d08c4fdc91cf3c29a159
BLAKE2b-256 1c0baf154bb0c8b44246a3efc8f372c74c2c72511cb7fd4e3735dcbf5c075271

See more details on using hashes here.

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