Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MyDapytains

Flask Server Tests Test

The name of the library is completely temporary.

This library offers a base python implementation of the following functionalities:

  • Parsing of machine-actionable citeStructure and citeData to retrieve reference, structure and citable unit metadata within a TEI file
  • Reuse of citeStructure architecture to retrieve and build partial documents, based on provided reference.
  • Support for multiple citeStructure, similar to the ?tree parameter of the DTS Specifications.

This library will:

  • Provide a base implementation of the DTS API, using python as a server-side language
  • Provide some light "caching" features, to avoid reparsing document at query time.

ToDo

  • Support XSL transformation with mediaType dictionary for outputting different data
  • Add tests to webapp

WebApp

You can try the webapp using python -m dapytains.app.app. It uses test files at the moment.

Guidelines

Document level guidelines

  1. For TEI document to be accessible in full, no specific requirements are necessary.
  2. For TEI document to have a single citation tree, they must provide at least one element at the XPath /TEI/teiHeader/encodingDesc/refsDecl[@default='true']/citeStructure.
  3. For TEI document to have multiple citation trees, they must provide at least one element at the XPath /TEI/teiHeader/encodingDesc/refsDecl[@default='true']/citeStructure and any number of element matching the XPath /TEI/teiHeader/encodingDesc/refsDecl[@n]/citeStructure, where @n holds the citation tree name.

We are currently figuring out the Resource level metadata.

See one of our test files to check out the minimal requirements: we have one with citeData and one with multiple trees

Collection and Resource level guidelines

Collection and Resource level guidelines can be provided through file named dts-metadata.xml in each subfolder of a given repository. We are currently looking at using external file that would help you ingest metadata, while leaving you the option to load up metadata yourself.

The current schema for the collection catalog ingestion is available in ./tests/catalog/schema.rng.

Support

Funded via the CLLG Project.

Ce travail a bénéficié d’une aide de l’État gérée par l’Agence Nationale de la Recherche au titre de France 2030 portant la référence « ANR-24-RRII- 0002 » et opéré par le Programme Inria Quadrant.

Release files for dapytains 1.0.0rc4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dapytains 1.0.0rc4
File Size Uploaded
dapytains-1.0.0rc4.tar.gz 49.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dapytains 1.0.0rc4
File Interpreter ABI Platform
dapytains-1.0.0rc4-py3-none-any.whl Python 3 none any Details

Total release size: 86.1 kB

Release files / dapytains-1.0.0rc4.tar.gz

Download URL dapytains-1.0.0rc4.tar.gz
Size 49.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fa9a6899e8472288d4a12a21e2f8170735eaa2b2753f90b6ca184eb3c89689c5
BLAKE2b-256 checksum
How to use checksums
2c1f6bb2fde8915aa879af40a9c3903f0c310fa144d8bb16688966fcaa3c7051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / dapytains-1.0.0rc4-py3-none-any.whl

Download URL dapytains-1.0.0rc4-py3-none-any.whl
Size 36.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aa6bb05166c248287e1ba39620c043256661ce98731bd8da756a75a092cc9af
BLAKE2b-256 checksum
How to use checksums
4ad0ee6bf0d0d83bc1f869a62e3ffa64bc3fbba403a2806e6592ebf6bbe17c28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page