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.95.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 |
|---|---|---|---|---|
| 3tears_interfaces-0.95.0.tar.gz | 96.1 kB | With provenance | Details for 3tears_interfaces-0.95.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 3tears_interfaces-0.95.0-py3-none-any.whl | Python 3 | none | any | Details for 3tears_interfaces-0.95.0-py3-none-any.whl |
Total release size: 199.3 kB
Release files / 3tears_interfaces-0.95.0.tar.gz
| Download URL | 3tears_interfaces-0.95.0.tar.gz |
|---|---|
| Size | 96.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ffc9d559238c65ae2b665056daacf82b3fcb91fcf1acd582ab6057959b6a701
|
|
BLAKE2b-256 checksum How to use checksums |
76aa0801f8c3d270660621286f90b488623f14e31aa2bb5593b994424eaa7f62
|
| 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 Nov 30, 2026.
Transparency logRelease files / 3tears_interfaces-0.95.0-py3-none-any.whl
| Download URL | 3tears_interfaces-0.95.0-py3-none-any.whl |
|---|---|
| Size | 103.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dc52d84191da2be838bfd15b91ff6d479fba31f462bdb35ffb3375911245aa86
|
|
BLAKE2b-256 checksum How to use checksums |
72798b86adf91b794a03eafe27e140a53e7b0549e9668106bf6c3bf91008a9f0
|
| 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 Nov 30, 2026.
Transparency logSecurity for 3tears-interfaces 0.95.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for 3tears_interfaces-0.95.0.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 Nov 30, 2026.
Transparency logA 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.