Unified CLI for the heritage science open-source ecosystem — orchestrates HOARD, StratiGraph, Trowel, Libby, Dibble, and other tools
Project description
heritage-cli
One command-line front door for repeatable Dig:Tools heritage workflows.
heritage-cli orchestrates existing applications; it does not reimplement their
analysis. It can run HOARD phases, invoke compatible radiocarbon, lithics,
matrix, review, and publishing commands, and execute declarative YAML pipelines
with resumable state and explicit human-review gates.
Install
python -m pip install heritage-cli
heritage --version
heritage --help
Install the tools used by your workflow separately. Compatibility extras are available for the historical command packages:
python -m pip install "heritage-cli[hoard,libby,stratigraph,dibble,trowel]"
Common commands
# Inspect discoverable tools
heritage tools
# Discover open archaeological data with provenance retained
heritage open-context "amphora" --details
heritage open-context "amphora" --details --json > comparanda.json
# Run a single HOARD phase or the full pipeline
heritage run --project my_site --phase 0
heritage run --project my_site --auto
# Run a declarative multi-tool workflow
heritage run --project my_site \
--pipeline pipeline.example.yaml \
--workspace ./erd_workspace
# Specialist hand-offs
heritage calibrate --project my_site
heritage lithics --project my_site --input ./scans
heritage review --project my_site
heritage matrix --project my_site
heritage publish --project my_site --format docx,pdf
Run heritage COMMAND --help before scripting a command; the installed version’s
help is authoritative.
Open Context discovery
heritage open-context is a bounded, read-only connector to Open Context's
public JSON-LD API. It does not mirror data or automatically paginate. Geometry
is omitted by default; add --include-geometry only when published coordinates
are necessary and ethically appropriate. --details retrieves each record's
exact Creative Commons licence, creators, project, and persistent identifier at
a service-friendly rate below three requests per second.
Open Context's terms, record-level licences, contributor attribution, and archaeological ethics continue to apply to downloaded results. Human-remains- related records are flagged and produce an ethical-use notice.
Pipelines and state
Pipeline YAML describes ordered application steps and review gates. Progress is
stored beneath the selected workspace, allowing an interrupted run to resume
without silently repeating completed work. pipeline.example.yaml
is a minimal working template.
Human gates are intentional. --auto may skip them in pipeline mode and should
only be used when the inputs and outputs are independently reviewed elsewhere.
Dig:Tools relationships
| Repository | Role |
|---|---|
| Dig:Codex | Report generation and research/archive tools |
| Dig:Stratum | Field recording and Harris Matrices |
| Dig:Crucible | Lithics, dating, and laboratory analysis |
| Dig:Folio | Collections management and vocabulary generation |
| heritage-types | Canonical cross-tool schemas |
Some command adapters retain historical executable names (hoard, libby,
dibble, trowel, stratigraph) for compatibility after consolidation.
Development
git clone https://github.com/dig-tools/heritage-cli.git
cd heritage-cli
python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"
python -m pytest tests -m "not integration"
mypy src
See USER_GUIDE.md for pipeline setup, review gates, state, and troubleshooting.
Licence
MIT.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file heritage_cli-1.0.3.tar.gz.
File metadata
- Download URL: heritage_cli-1.0.3.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55d1bf5ad0509d1c2705f22bfd34856cecac13a1a49de418fae6eaae058879b4
|
|
| MD5 |
bd1eda6cbb62029c6b3f7938d33b8173
|
|
| BLAKE2b-256 |
97f1c636d076ee0eddfc58496cb8345b30a61c3feecabd65ede55cb878cfc280
|
Provenance
The following attestation bundles were made for heritage_cli-1.0.3.tar.gz:
Publisher:
publish.yml on dig-tools/heritage-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heritage_cli-1.0.3.tar.gz -
Subject digest:
55d1bf5ad0509d1c2705f22bfd34856cecac13a1a49de418fae6eaae058879b4 - Sigstore transparency entry: 2187467015
- Sigstore integration time:
-
Permalink:
dig-tools/heritage-cli@ca54ac40d6cabf974aee8c99512dc510eb63e27f -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/dig-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca54ac40d6cabf974aee8c99512dc510eb63e27f -
Trigger Event:
push
-
Statement type:
File details
Details for the file heritage_cli-1.0.3-py3-none-any.whl.
File metadata
- Download URL: heritage_cli-1.0.3-py3-none-any.whl
- Upload date:
- Size: 25.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
291283aa66e5fce8abe249413ab549e9a81a73e15d60a3684921e63399d2fee9
|
|
| MD5 |
80df649b9d0c6a0463965c9c9ad8af3e
|
|
| BLAKE2b-256 |
8ca8e08d61b559cf471dd3815089ccf3918e4b723a480e28b72affdefd84fddd
|
Provenance
The following attestation bundles were made for heritage_cli-1.0.3-py3-none-any.whl:
Publisher:
publish.yml on dig-tools/heritage-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heritage_cli-1.0.3-py3-none-any.whl -
Subject digest:
291283aa66e5fce8abe249413ab549e9a81a73e15d60a3684921e63399d2fee9 - Sigstore transparency entry: 2187467023
- Sigstore integration time:
-
Permalink:
dig-tools/heritage-cli@ca54ac40d6cabf974aee8c99512dc510eb63e27f -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/dig-tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ca54ac40d6cabf974aee8c99512dc510eb63e27f -
Trigger Event:
push
-
Statement type: