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.2

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.2
File Size Uploaded Provenance Actions
atm_query-1.7.2.tar.gz 412.7 kB Without provenance Details for atm_query-1.7.2.tar.gz

Built distributions (wheels)

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

Total release size: 4.6 MB

Release files / atm_query-1.7.2.tar.gz

Download URL atm_query-1.7.2.tar.gz
Size 412.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3c06a15f00bfb88ccce278720ca07908a2d279fdbd0d236b9dbaf1725dd72a96
BLAKE2b-256 checksum
How to use checksums
b43013d6598b43de7c13c9bc89cf6c670438138f9ed4a9e15fbe0573bad6c2ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

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

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

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

Download URL atm_query-1.7.2-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
d7993a6b252fd495f8359e5219d5a5243773948d80d6d6d54cb348d2b8498aba
BLAKE2b-256 checksum
How to use checksums
32c18f6a4ce6238fa8d3548cdd9ba3bd2652a40c4dd79458eb6b89e560d9a734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

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

Download URL atm_query-1.7.2-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
4effaeb369eeea96875abb299cbc0cfb041c4cffb392a494eb75c648cbf6d2ed
BLAKE2b-256 checksum
How to use checksums
938e788a86df04e7dd5e2bda3758cbfcb3984f7834627a270c35f539f534ec12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.4

Security for atm-query 1.7.2

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