Skip to main content

3tears-interfaces

The 3tears family's shared Protocols and vocabulary, in one package that depends on nothing.

The rule. This package holds Protocols, the value types and enums that cross them, and pure helpers over those types. No implementations, no third-party imports, no dependencies. A provider can implement a Protocol, and a consumer can accept one, without inheriting any feature package's dependency closure. The workspace's tests/enforcement/ fails any module-top import here that is not the stdlib or threetears.interfaces itself.

One module per domain:

Module What it holds
threetears.interfaces.access The identity and authorization vocabulary 3tears-iam and 3tears-agent-acl both name
threetears.interfaces.media Media capability Protocols, the value types that cross them, and the object-key builder
threetears.interfaces.keyed The keyed helpers' vocabulary and pure builders: each keyed read and write's SQL text and binds, and the connection Protocol they run on

access

from threetears.interfaces.access import ImpersonationCategory

ImpersonationCategory is the fixed set of six sensitive actions: credential, passkey and MFA management; account deletion; API-key mint or rotate for the target; email change; RBAC grant changes; audit editing. agent-acl deny-lists all six under impersonation, and iam's stepup requires a recent sign-in for each. iam proves who a caller is and agent-acl decides what they may do; neither depends on the other, so the values both must agree on live here.

media

from threetears.interfaces.media import GeneratedImage, ImageGenerationBackend

The Protocols media providers (3tears-models, 3tears-object-store) implement and media consumers (3tears-agent-tools) accept: VisionProvider, ReferenceVisionProvider, TextProvider, TranscriptionProvider, ImageGenerationBackend, MediaStorage and ObjectStore. The value types that cross them: MediaInfo, GeneratedImage, ObjectHandle, ObjectListing and MediaSizeLimitExceeded. Plus the extraction-status and generation-metadata constants, and the object-key builder build_object_key.

MediaFacets carries the additive carrier facets: rights status, pixel dimensions, and whether a locator points at the file itself or at the page containing it. The vocabulary grows by addition only, and a consumer that does not recognise a facet ignores it rather than failing, so a new carrier ships without a coordinated release.

from threetears.interfaces.media import LOCATOR_KIND_DIRECT_FILE, MediaFacets

keyed

from threetears.interfaces.keyed import KeyBatch, read_keyed_statements, read_row_statement

The half of 3tears' keyed helpers that needs no connection. The vocabulary (AnyOf, Fragment, Selected, Lock, KeyBatch, Sort, Match, and the value types the runners answer) and the builders that write each shape's statement: a point read (read_row_statement), a keyed batch (read_keyed_statements), a listing's page and a listing read to its end (keyset_page_statement, keyset_rows_statement), a keyed write (update_keyed_statements, delete_keyed_statements) and an expiry sweep (delete_before_statement). Each answers SQL text with $n placeholders and its binds. threetears.core.keyed runs them and re-exports every name. A package that may not depend on core runs a builder's statement on its own KeyedConnection, or on SQLite through sqlite_numbered.

Install

pip install 3tears-interfaces

Versioning policy

3tears-interfaces versions in lockstep with the rest of the 3tears monorepo: every package shares one version, tracking the framework git tag.

Metadata

Release files for 3tears-interfaces 0.96.1

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

Source distribution (sdist)

Source distribution for 3tears-interfaces 0.96.1
File Size Uploaded Provenance Actions
3tears_interfaces-0.96.1.tar.gz 96.5 kB With provenance Details for 3tears_interfaces-0.96.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for 3tears-interfaces 0.96.1
File Interpreter ABI Platform Actions
3tears_interfaces-0.96.1-py3-none-any.whl Python 3 none any Details for 3tears_interfaces-0.96.1-py3-none-any.whl

Total release size: 200.1 kB

Release files / 3tears_interfaces-0.96.1.tar.gz

Download URL 3tears_interfaces-0.96.1.tar.gz
Size 96.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a89493938d26a353c31f22dcd4ab53ec0b416434ac7be14e634f3a433f36fe43
BLAKE2b-256 checksum
How to use checksums
8e5c9d3aac17a35a5eb6ba04f461a104fa07fb2904926d44124eb996c7208efa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 1, 2026.

Transparency log

Release files / 3tears_interfaces-0.96.1-py3-none-any.whl

Download URL 3tears_interfaces-0.96.1-py3-none-any.whl
Size 103.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b05c8e040c8f208ed40ece2e198cdc2369d1a10dcf16733bdc95ed360fae793e
BLAKE2b-256 checksum
How to use checksums
11623895f4b6b47127aa15ac20bd45d329017b3068328df434ccfbe8ccc6ca80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 1, 2026.

Transparency log

Security for 3tears-interfaces 0.96.1

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.

Select from 2 files

Attestation for 3tears_interfaces-0.96.1.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 Dec 1, 2026.

Transparency log

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