acta-sql
Query Veritas Acta receipt DAGs with SQL.
Flattens Veritas Acta receipt DAGs into queryable DuckDB tables. Built on DuckDB for blazing-fast local analytics. No server required.
Install
pip install acta-sql
CLI Usage
# Load receipts into a local DuckDB file
acta-sql load audit-bundle.json
# Query with SQL
acta-sql query "SELECT tool_name, COUNT(*) FROM receipts GROUP BY tool_name"
# Quick summary
acta-sql summary
Example output from acta-sql summary:
Receipts: 142
Denied: 7
Unique tools: 12
Time range: 2026-03-01T00:00:00Z to 2026-03-27T23:59:59Z
Python API
from acta_sql import load_receipts, create_db, query
receipts = load_receipts("audit-bundle.json")
db = create_db(receipts)
rows = query(db, "SELECT tool_name, decision, COUNT(*) as n FROM receipts GROUP BY tool_name, decision ORDER BY n DESC")
for row in rows:
print(row)
Database Schema
receipts
| Column | Type |
|---|---|
| id | VARCHAR (PK) |
| type | VARCHAR |
| tool_name | VARCHAR |
| decision | VARCHAR |
| agent_id | VARCHAR |
| issuer_id | VARCHAR |
| timestamp | VARCHAR |
| policy_hash | VARCHAR |
| signature | VARCHAR |
| raw_json | VARCHAR |
edges
| Column | Type |
|---|---|
| source_id | VARCHAR |
| target_id | VARCHAR |
| relation | VARCHAR |
payloads
| Column | Type |
|---|---|
| receipt_id | VARCHAR |
| key | VARCHAR |
| value | VARCHAR |
Supported Input Formats
.json— A JSON array of receipts, or an object with areceiptskey.jsonl— One receipt per line- Python
list[dict]— Pass directly tocreate_db()
License
MIT
Metadata
Release files for acta-sql 0.1.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 |
|---|---|---|---|---|
| acta_sql-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for acta_sql-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| acta_sql-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for acta_sql-0.1.0-py3-none-any.whl |
Total release size: 8.7 kB
Release files / acta_sql-0.1.0.tar.gz
| Download URL | acta_sql-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3cd29251a33fcc6f3e89cb83b7d583cba6a933d2e96f1efd898bd9f82b61e6d1
|
|
BLAKE2b-256 checksum How to use checksums |
363773d19960ade5b61ea1d632bbe0df295573d8008de528a7eb9e84e09fbbbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.6
|
Release files / acta_sql-0.1.0-py3-none-any.whl
| Download URL | acta_sql-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3591d9f1af61cf7a2aef58ad8baa6c4a0e451cd046beadacaa6ac6027ee26d5
|
|
BLAKE2b-256 checksum How to use checksums |
6a05bd39277bc8f0f6a8ea91ff2d7035d57f08553d6093b0fad21f42526791db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.6
|
Security for acta-sql 0.1.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.