Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

tba-contracts-authorization

TBA · Tigrbl Auth

Checkout: 0.4.0.dev5 Python: >=3.10,<3.16 License: Apache-2.0 Notice: attribution Layer: 02 contracts PyPI version for tba-contracts-authorization

Monthly PyPI downloads for tba-contracts-authorization README hits for tba-contracts-authorization SSOT: governed Evidence: verification

Transport-neutral contracts shared by policy administration, decision, enforcement, and UI clients.

AEO Summary

  • Package: tba-contracts-authorization
  • Layer: 02-contracts
  • Responsibility: Canonical platform authorization request, role, grant, and decision contracts.
  • Public surface: public entry point.
  • Distribution: Python package on PyPI.

When to use it

Choose tba-contracts-authorization for this responsibility: Canonical platform authorization request, role, grant, and decision contracts. Its 02-contracts placement keeps shared types and structural ports separate from environment-specific service implementations or HTTP routing.

Installation

Install the selected PyPI release of tba-contracts-authorization:

uv pip install tba-contracts-authorization

To work on the current checkout before a prepared release is published:

uv pip install ./pkgs/02-contracts/tba-contracts-authorization

Quick start

With uv available, save the example as quickstart.py. This isolated Python 3.12 command requires the selected version to be available on PyPI; Installation also documents the checkout workflow.

from tba_contracts_authorization import AuthorizationEffect

assert callable(AuthorizationEffect)
uv run --isolated --no-project --python 3.12 --with "tba-contracts-authorization==0.4.0.dev5" python quickstart.py

The import and assertion succeed when the AuthorizationEffect entry point is available.

Usage

The following public-entry-point example belongs to tba-contracts-authorization. Canonical platform authorization request, role, grant, and decision contracts. Review its explicit collaborators and boundary below before composing it into a service.

from tba_contracts_authorization import AuthorizationEffect

assert callable(AuthorizationEffect)

Package Boundary

tba-contracts-authorization belongs to 02-contracts and owns shared types and structural ports: Canonical platform authorization request, role, grant, and decision contracts.

Its implementation surface is the public entry point. Public exports include ActionDefinition, AuthenticationContext, AuthorizationDecision, AuthorizationEffect, AuthorizationRequest, PrincipalRef, ResourceRef, RoleDefinition, RoleGrant.

Keep environment-specific service implementations or HTTP routing in their owning packages. The package index records layer placement and local dependency edges.

Injected dependencies

The public entry point for tba-contracts-authorization does not declare an explicit service-constructor or keyword-only factory hook in the inspected source. Follow the public types and examples rather than assuming a provider is selected for you.

Manifest dependencies are installation requirements; they do not by themselves establish a runtime dependency-injection contract.

Operations and readiness

tba-contracts-authorization exposes shared types and structural ports. Public operations found in its source:

  • AuthorizationDecision.allowed — source.

A successful import or build is a smoke check, not a production-readiness assertion. Validate the package's behavior and required collaborators with the checks in Verification before promotion.

Protocol consumers

No active layer-50 manifest declares a direct runtime dependency on tba-contracts-authorization. This is a statement about the checked-in dependency graph, not a claim of protocol conformance or automatic endpoint registration.

Other direct consumers include tba-client-authorization-administration, tba-client-policy-decision, tba-durability-authorization-policy, tba-provider-authorization-policy-decision-engine, tba-router-authorization-administration, tba-router-policy-decision.

Non-goals

tba-contracts-authorization does not take ownership of environment-specific service implementations or HTTP routing.

Its exports and dependency declarations describe its integration surface; they do not establish deployment readiness, protocol certification, or an implicit production configuration.

Direct downstream consumers:

Governance

tba-contracts-authorization follows the canonical SSOT registry and package index. Keep its 02-contracts ownership, public imports, declared dependencies, examples, and release metadata aligned.

Changes must pass the README standards gate, package checks, and the evidence requirements relevant to the changed behavior. Update SSOT through the repository's CLI workflow when changing governed claims or boundaries.

Verification

A prior published-version quick start informed this example. A registry badge is not evidence that this checkout's selected version or example has been verified against PyPI. See the public package entry point.

Metadata

Release files for tba-contracts-authorization 0.4.0.dev5

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

Source distribution (sdist)

Source distribution for tba-contracts-authorization 0.4.0.dev5
File Size Uploaded Provenance Actions
tba_contracts_authorization-0.4.0.dev5.tar.gz 8.7 kB Without provenance Details for tba_contracts_authorization-0.4.0.dev5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tba-contracts-authorization 0.4.0.dev5
File Interpreter ABI Platform Actions
tba_contracts_authorization-0.4.0.dev5-py3-none-any.whl Python 3 none any Details for tba_contracts_authorization-0.4.0.dev5-py3-none-any.whl

Total release size: 18.7 kB

Release files / tba_contracts_authorization-0.4.0.dev5.tar.gz

Download URL tba_contracts_authorization-0.4.0.dev5.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
30857e02b6c3608a2e32df6d5b9cec6b9217b393ee46f0868139ae0e04745ec4
BLAKE2b-256 checksum
How to use checksums
d0ca463ac70a01af7b89c6288de74ed0c6942a07d29443cb346725a9a35c3d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / tba_contracts_authorization-0.4.0.dev5-py3-none-any.whl

Download URL tba_contracts_authorization-0.4.0.dev5-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3f0604a0727910b83db715ad4987426bc248c268fbd59cd3d1da7929df62a9c
BLAKE2b-256 checksum
How to use checksums
d3d5abe3c150ecdc19d8ec6c62ad499f5f27f97279b0f6111699dd78a9a8e9d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for tba-contracts-authorization 0.4.0.dev5

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