tisserande
Execution provenance tracking for Python functions and shell scripts.
Tisserande records what functions ran, what data they consumed and produced, how long they took, and whether they succeeded — all as a directed acyclic graph (DAG) stored in a database.
Installation
pip install tisserande
For development:
pip install -e ".[dev]"
Quick Start
1. Configure tracking
from tisserande.tracking import configure
# Uses in-memory SQLite by default for quick experiments
configure(db_url="sqlite+aiosqlite:///my_provenance.db")
2. Decorate your functions
from tisserande.tracking import track
from tisserande.tracking.annotations import DataFile, Param
@track
def fit_model(
input_catalog: DataFile[str],
config_file: DataFile[str],
learning_rate: Param[float],
) -> DataFile[str]:
"""Train a model and write output."""
# ... your code ...
return "/data/results/model_output.fits"
# Call normally — provenance is recorded automatically
fit_model("/data/catalogs/train.fits", "/configs/model.yaml", 0.01)
3. Query the provenance
from tisserande.local_sync import execution, node, edge
# Get all executions
for ex in execution.get_rows():
print(f"{ex.id_}: status={ex.status}, duration={ex.duration_seconds:.2f}s")
# Get all nodes for a specific execution
nodes = node.filter_rows(filters=[...])
Type Annotations
Control how arguments are classified with type annotations:
from tisserande.tracking.annotations import (
DataFile, # File containing data (e.g., FITS, HDF5, Parquet)
ConfigFile, # Configuration file (e.g., YAML, JSON, TOML)
ConfigDict, # Dictionary containing configuration
Param, # Numeric parameter
ArrayArg, # Array of values
ObjectArg, # Python object
Untracked, # Skip tracking for this argument
)
Without annotations, tisserande uses heuristics (file extensions, Python types) to classify arguments automatically.
Tracking Shell Commands
from tisserande.tracking import track_shell
result = track_shell(
"sextractor input.fits -c config.sex",
inputs={
"image": "/data/input.fits",
"config": "/configs/config.sex",
},
outputs={
"catalog": "/data/output.cat",
},
)
Async Support
from tisserande.tracking import track_async
@track_async
async def async_pipeline(data: DataFile[str]) -> DataFile[str]:
# ... async processing ...
return "/data/output.fits"
Architecture
Tisserande models provenance as a DAG:
[input.fits] ──→ [fit_model()] ──→ [output.fits]
[config.yaml] ─┘
[lr=0.01] ─────┘
- Nodes represent data (files, configs, parameters, arrays, objects) and logic (functions, scripts)
- Edges connect inputs to functions and functions to outputs
- Executions group all nodes/edges from a single function call
The database stores:
- Type tables: reusable definitions (e.g., "PythonFunction: fit_model in mymodule")
- Node table: specific instances with runtime values
- Edge table: directed connections between nodes
- Execution table: timing, status, error info per function call
Database Backends
By default, tisserande uses SQLite via SQLAlchemy. Configure any SQLAlchemy-compatible database:
configure(db_url="postgresql+asyncpg://user:pass@localhost/provenance")
REST API
Start the server:
tisserande-server --port 8080
Provides CRUD endpoints for all tables at http://localhost:8080/docs.
CLI
# List executions
tisserande-local execution get-rows
# Get a specific node
tisserande-local node get-row <node-uuid>
Configuration
Environment variables (prefix TISSERANDE__, nested with __):
| Variable | Default | Description |
|---|---|---|
TISSERANDE__DB__URL |
sqlite+aiosqlite:///tisserande.db |
Database URL |
TISSERANDE__TRACKING__ENABLED |
true |
Global tracking toggle |
TISSERANDE__TRACKING__BACKEND |
local_sync |
Backend: local_sync or null |
Testing
For tests, use the NullBackend to avoid database overhead:
from tisserande.tracking import configure
from tisserande.tracking.backends import NullBackend
configure(backend=NullBackend())
License
MIT
Metadata
Release files for tisserande 0.0.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 |
|---|---|---|---|---|
| tisserande-0.0.0.tar.gz | 11.0 MB | With provenance | Details for tisserande-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tisserande-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for tisserande-0.0.0-py3-none-any.whl |
Total release size: 11.0 MB
Release files / tisserande-0.0.0.tar.gz
| Download URL | tisserande-0.0.0.tar.gz |
|---|---|
| Size | 11.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ed48fe8041c9422cc427b40a7298deeb6c621d3922dee39b978b7d0d642384a
|
|
BLAKE2b-256 checksum How to use checksums |
832d6c0a6c19530984bbb2bbf69579a2cbfe6b7c260faa34160bd27f5859cc93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 10, 2026.
Transparency logRelease files / tisserande-0.0.0-py3-none-any.whl
| Download URL | tisserande-0.0.0-py3-none-any.whl |
|---|---|
| Size | 36.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f92e391897015fe3f2d47e79f0763ddd7bf7e21b39f3922d56d323ce4b9e59b4
|
|
BLAKE2b-256 checksum How to use checksums |
1bcaa74d5a159dd1fea07484dbf057f001f888bc56d0ee4e41de8d23fabbd528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 10, 2026.
Transparency logSecurity for tisserande 0.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tisserande-0.0.0.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 10, 2026.
Transparency logA 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.