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.94.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.94.0
File Size Uploaded Provenance Actions
3tears_interfaces-0.94.0.tar.gz 22.1 kB With provenance Details for 3tears_interfaces-0.94.0.tar.gz

Built distribution (wheel)

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

Total release size: 40.6 kB

Release files / 3tears_interfaces-0.94.0.tar.gz

Download URL 3tears_interfaces-0.94.0.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
666cedd036b742dec92f4cf30be81778742645711d16c002d202ad93b21f155c
BLAKE2b-256 checksum
How to use checksums
0e2e640fb0155dcb98a3d06e5c43133307ed09accd6713e1a3367b56c5b1cdee
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.94.0-py3-none-any.whl

Download URL 3tears_interfaces-0.94.0-py3-none-any.whl
Size 18.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59ce9118dc57cd9b5ae4b5b9ca9ea9cdabba49c0ea59ed9e462ca92cbc4400fc
BLAKE2b-256 checksum
How to use checksums
289ced6c41aba7575e50008e0f5672aea60401016d2b8b7b735d8eeab41287fd
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.94.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.94.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