CLI audit trail reader for TIBET provenance tokens
Project description
tibet-trail
CLI audit trail reader for TIBET provenance tokens. Reads, searches, and monitors JSONL files written by tibet-core FileStore.
Install
pip install tibet-trail
Commands
# Show recent tokens (default: 20)
tibet-trail log audit.jsonl [-n 50] [--format json|csv|text]
# Search by action/actor/time
tibet-trail search audit.jsonl --actor jis:hub --action "ping.*" --since 1h
# Trace provenance chain
tibet-trail trace audit.jsonl <token_id> [--depth 50]
# Live follow (tail -f style)
tibet-trail watch audit.jsonl [--filter-actor jis:hub]
# Verify integrity
tibet-trail verify audit.jsonl [--key <hex>]
# Statistics
tibet-trail stats audit.jsonl [--format json]
# Export to file
tibet-trail export audit.jsonl output.csv --format csv
Time Filters
The --since flag accepts relative times: 30s, 5m, 1h, 2d, 1w or ISO timestamps.
Python API
from tibet_trail import TrailReader
reader = TrailReader("audit.jsonl")
# Last 10 tokens
for token in reader.log(n=10):
print(f"{token.timestamp}: {token.action} ({token.actor})")
# Search with regex
results = reader.search(action="ping.*", actor="jis:hub", since="1h")
# Trace chain
chain = reader.trace("tibet_20241217_abc12345")
# Verify integrity
report = reader.verify()
print(f"Integrity: {report['integrity']}")
# Stats
stats = reader.stats()
print(f"Total: {stats['total']}, Actors: {stats['actors']}")
Development
pip install -e ".[dev]"
pytest tests/ -v
License
MIT
Credits
Designed by Jasper van de Meent. Built by Jasper and Root AI as part of HumoticaOS.
Stack-positie: Groep evidence · Bootstrap = OSAPI-handshake naar tibet + jis (fail → snaft-rule + tibet-pol-rapport) · ← tibet-report · See STACK.md · See demo/golden-path/ for the spine end-to-end.
Enterprise
For private hub hosting, SLA support, custom integrations, or compliance guidance:
| Enterprise | enterprise@humotica.com |
| Support | support@humotica.com |
| Security | security@humotica.com |
See ENTERPRISE.md for details.
Project details
Release history Release notifications | RSS feed
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 tibet_trail-0.1.1.tar.gz.
File metadata
- Download URL: tibet_trail-0.1.1.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d70c4dc7f2dd21c67af820d6eb1675e35ec5c1b795cca166f36ff81f5aca11c
|
|
| MD5 |
90dfa2ada9e142e4868089ecc0c7d644
|
|
| BLAKE2b-256 |
1007f8f9d625b8a83f12f0b75252b2feabd79ca30bb43d76ce7751dd63b2d384
|
File details
Details for the file tibet_trail-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tibet_trail-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b5a309b82ce80d8a02cad4dbe0e16e215292c5366f43871a7ac5416fe6bea4a
|
|
| MD5 |
0a286fe9a5714c60291613980212a8fc
|
|
| BLAKE2b-256 |
3ca425b7a6b9289bbafaac4d5371d26139a0cab70e13e67f8cb3b8ff17bf5f2b
|