This release is a pre-release and may not be stable for production use.
MyDapytains
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
- For TEI document to be accessible in full, no specific requirements are necessary.
- 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. - For TEI document to have multiple citation trees, they must provide at least one element
at the XPath
/TEI/teiHeader/encodingDesc/refsDecl[@default='true']/citeStructureand any number of element matching the XPath/TEI/teiHeader/encodingDesc/refsDecl[@n]/citeStructure, where@nholds 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.0rc3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dapytains-1.0.0rc3.tar.gz | 48.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dapytains-1.0.0rc3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.8 kB
Release files / dapytains-1.0.0rc3.tar.gz
| Download URL | dapytains-1.0.0rc3.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d3b76eb284a41b04201345c2ac29b50aab543ddb7310f146207ee5a5bb75c9c
|
|
BLAKE2b-256 checksum How to use checksums |
d7cb8a2650eeb1ebfbf5873a6e3645f1f4dc9042ac0256e7a82569295fdaa861
|
| 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 17, 2026.
Transparency logRelease files / dapytains-1.0.0rc3-py3-none-any.whl
| Download URL | dapytains-1.0.0rc3-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
971b1f9474412548ea01d8e53eb85fd422c9271961f4d88a1a498826cbabb56f
|
|
BLAKE2b-256 checksum How to use checksums |
db7f857b0417c553d170d1f0de3bc30f31d51fdbc0501b1752c7bbd729417ffd
|
| 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 17, 2026.
Transparency log