Passthrough - Template-Driven PDS4 Data Product Generation in Python
The Passthrough software library seeks to provide PDS4 data processors with an integrated solution for generating output labels based on declarative product type templates. It serves as a complementary counterpart to the PDS4 Tools read-in library, enabling processors to interact natively with the PDS4 format without the need for intermediary internal product representations or separate file formats.
To learn more, visit the project's documentation.
Installation
The Passthrough library lives on PyPI and can be installed with
pip:
pip install passthrough
You'll need to have installed Python 3.6 or newer, and the package will pull in lxml
and numpy as dependencies.
Development setup
The project uses Poetry to manage dependencies and packaging. After cloning the
repository and installing Poetry (e.g. pipx install poetry), the following steps
(executed from the project root directory) will initialise the development environment.
Create venv (substitute for the version you want to work against):
poetry env use python3.6
Fetch dependencies defined in pyproject.toml and install project in development mode:
poetry install
Please refer to the Poetry documentation for further information on its usage.
Feature roadmap
Near term / high priority
- Documentation revamp (MkDocs, tutorial, api) - in progress
- Helpers on the API side for working with
File_Area_Observational- in progress - Automated test suite
- Continuous integration
Longer term / lower priority
- Validation entry point script capable of statically checking templates
- If needed:
strictproperty which actively discards non-requiredelements: in thefetchcontext, even if a source element is found; in the non-fetchcontext, even if the element is populated - If needed:
ignoreproperty which allows unpopulated elements to remain in the exported label (for when a downstream tool will perform modifications to the product before it is validated for correctness / ingested in the archive) - If needed: the ability to add element XML attributes via the template (unlikely?)
- Support for no-default-prefix XPath expressions via internal substitution (supporting XPath predicates etc. will require a tokenizer/parser be built/commandeered, which is low on the priority list)
Completed
- Adopt Poetry for packaging and dependency management
- Full support for logging
- Interoperability with
pds4_toolsloaded source labels - Common label interrogation/manipulation functionality exposed for clients to use
- Add support for multi-fill (fill node in node-set based on which multi branch context node belongs to)
- Add support for fill string formatting (if node is populated and contains a {}-pair, substitute in fill result)
- Create extension plugin support (3rd party XPath functions)
Metadata
Release files for passthrough 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| passthrough-0.4.0.tar.gz | 27.1 kB | Without provenance | Details for passthrough-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| passthrough-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for passthrough-0.4.0-py3-none-any.whl |
Total release size: 61.2 kB
Release files / passthrough-0.4.0.tar.gz
| Download URL | passthrough-0.4.0.tar.gz |
|---|---|
| Size | 27.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
728072018f0481ebd186859701ba916673300168825e993e269c62433fbc3808
|
|
BLAKE2b-256 checksum How to use checksums |
f12084bcb729e2ae13cc0b27778e53abb3c9d5f265f354eecbdc886c1070314a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / passthrough-0.4.0-py3-none-any.whl
| Download URL | passthrough-0.4.0-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2780d6d39c718dba836c46fef1c22cdaac3a3cf219e8a78675bf648f1b84ba72
|
|
BLAKE2b-256 checksum How to use checksums |
559a6bb654c0e521bf297029ddfd640d78abf08e73b66378ab71d8acf082e7b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for passthrough 0.4.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.