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

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

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.93.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 3tears-interfaces 0.93.0
File Size Uploaded Provenance Actions
3tears_interfaces-0.93.0.tar.gz 22.1 kB With provenance Details for 3tears_interfaces-0.93.0.tar.gz

Built distribution (wheel)

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

Total release size: 40.6 kB

Release files / 3tears_interfaces-0.93.0.tar.gz

Download URL 3tears_interfaces-0.93.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c62d8a7e639250e1543d087f3ce4dbb56d9cda638bc191030994d98c2ed6da67
BLAKE2b-256 checksum
How to use checksums
a4de544d1172ad1fbd75a34b615838ef68523b94727098001a24e54276fc66ea
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 7, 2026.

Transparency log

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

Download URL 3tears_interfaces-0.93.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
580dc470c3d72084c1412ace53e6f8489bbc56858ac5832713c41d6e76a22354
BLAKE2b-256 checksum
How to use checksums
8ab4059822059aece34c2212bd3594e816bed66b286215e2e8d685f1c3e417e7
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 7, 2026.

Transparency log

Security for 3tears-interfaces 0.93.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.

Select from 2 files

Attestation for 3tears_interfaces-0.93.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 7, 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