Skip to main content

atm-query

Local, read-only Python access to the ATM (atm-core) message store for analysis.

atm_query opens the current OS account's ~/.atm/db/mail.db and runs one parameterized, read-only SQL statement at a time against the versioned decomposed_messages view. It is not a network client: nothing here reaches the daemon, a peer, or another host.

from atm_query import open_readonly

rows = open_readonly().query(
    "SELECT team, agent, template_type FROM decomposed_messages WHERE template_type = ?",
    ("qa-report",),
)
  • open_readonly(database_path=None) returns a read-only database handle. With no path it opens ~/.atm/db/mail.db; ATM_HOME never selects the database.
  • ReadonlyDatabase.query(sql, parameters=None) returns a list of column-labelled dict rows.
  • Errors raise AtmQueryError with a stable code.

The connection uses query_only, SQLite defensive settings, an authorizer that allows only the decomposed_messages view, and fixed execution, row and result-size budgets. Base tables are not a contract.

The query surface is documented in docs/atm-query-surface.md.

License: MIT OR Apache-2.0.

Metadata

Release files for atm-query 1.7.0

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

Source distribution (sdist)

Source distribution for atm-query 1.7.0
File Size Uploaded Provenance Actions
atm_query-1.7.0.tar.gz 410.4 kB Without provenance Details for atm_query-1.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for atm-query 1.7.0
File Interpreter ABI Platform Actions
atm_query-1.7.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for atm_query-1.7.0-cp311-abi3-win_amd64.whl
atm_query-1.7.0-cp311-abi3-manylinux_2_34_x86_64.whl CPython 3.11 abi3 Linux glibc 2.34+ x86-64 Details for atm_query-1.7.0-cp311-abi3-manylinux_2_34_x86_64.whl
atm_query-1.7.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for atm_query-1.7.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 4.5 MB

Release files / atm_query-1.7.0.tar.gz

Download URL atm_query-1.7.0.tar.gz
Size 410.4 kB
Tags Source
SHA-256 checksum
How to use checksums
416659305cc028e1342472a7bab7a3c8f7c35d53a072a83ddbacf18866cdda5d
BLAKE2b-256 checksum
How to use checksums
d26eaa7fab3552cca8e29d08c8f3488e93eb93d9033610e20926a12670c6ab1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / atm_query-1.7.0-cp311-abi3-win_amd64.whl

Download URL atm_query-1.7.0-cp311-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
314976a5dbb73fee27b29a7ae0bed14d1db1f12dc5dcfb5688e3db340843e9e1
BLAKE2b-256 checksum
How to use checksums
b0053d0f3176090459778683422abc2b494d195ae4fb9e8448c878a473b1d1c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / atm_query-1.7.0-cp311-abi3-manylinux_2_34_x86_64.whl

Download URL atm_query-1.7.0-cp311-abi3-manylinux_2_34_x86_64.whl
Size 1.6 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
27f549149c9f55469f8f7e7b5ee392f72d3187dd1793d42f38ae9e9dfc8be737
BLAKE2b-256 checksum
How to use checksums
a7f015a59d1cb7dd94b3068803a5d5ab870000ee9da5eeb6a553e203ef28e36a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Release files / atm_query-1.7.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL atm_query-1.7.0-cp311-abi3-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2d11e78c3d87a21f1f2487a7346465ba7baae00352bed8f8566e6a62cf62e5ce
BLAKE2b-256 checksum
How to use checksums
1ee10c9235d8b430d905833cd215b41bf09d35aceeba565a2531355a71ceb84b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Security for atm-query 1.7.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.

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