Skip to main content

Dig:Tools

heritage-cli

One command-line front door for repeatable Dig:Tools heritage workflows.

License: MIT Python 3.11+ GitHub

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.

Metadata

Release files for heritage-cli 1.0.3

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

Source distribution (sdist)

Source distribution for heritage-cli 1.0.3
File Size Uploaded Provenance
heritage_cli-1.0.3.tar.gz 30.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for heritage-cli 1.0.3
File Interpreter ABI Platform
heritage_cli-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 55.9 kB

Release files / heritage_cli-1.0.3.tar.gz

Download URL heritage_cli-1.0.3.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
55d1bf5ad0509d1c2705f22bfd34856cecac13a1a49de418fae6eaae058879b4
BLAKE2b-256 checksum
How to use checksums
97f1c636d076ee0eddfc58496cb8345b30a61c3feecabd65ede55cb878cfc280
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 16, 2026.

Transparency log

Release files / heritage_cli-1.0.3-py3-none-any.whl

Download URL heritage_cli-1.0.3-py3-none-any.whl
Size 25.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
291283aa66e5fce8abe249413ab549e9a81a73e15d60a3684921e63399d2fee9
BLAKE2b-256 checksum
How to use checksums
8ca8e08d61b559cf471dd3815089ccf3918e4b723a480e28b72affdefd84fddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

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 Jul 16, 2026.

Transparency log

Security for heritage-cli 1.0.3

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for heritage_cli-1.0.3.tar.gz

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 Jul 16, 2026.

Transparency log

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.

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