Skip to main content
Loss of provenance

A previous release had provenance metadata, but this release does not. View details.

Talos Contracts (Python)

Talos Protocol contracts - schemas, types, and helper functions for auditable AI agent security.

Installation

pip install talos-contracts

Features

  • Cursor derivation: derive_cursor(timestamp, event_id) - Generate cursor from timestamp and event ID
  • Cursor decoding: decode_cursor(cursor) - Parse cursor to extract timestamp and event ID
  • Base64url: Strict base64url encoding/decoding (no padding)
  • UUIDv7 validation: is_uuid_v7(id) - Validate UUIDv7 strings
  • Event ordering: ordering_compare(a, b) - Compare events by (timestamp DESC, event_id DESC)

Usage

from talos_contracts import derive_cursor, decode_cursor, is_uuid_v7

# Derive a cursor
cursor = derive_cursor(1703721600, "0190a5e0-7c3a-7000-8000-000000000001")

# Decode a cursor
decoded = decode_cursor(cursor)
print(decoded)  # {"timestamp": 1703721600, "event_id": "0190a5e0-..."}

# Validate UUIDv7
is_valid = is_uuid_v7("0190a5e0-7c3a-7000-8000-000000000001")  # True

License

MIT

Metadata

Release files for talos-contracts 1.1.15

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

Loss of provenance

These files do not have provenance metadata, despite files in a prior release including this data.

We recommend further investigation before installing these files. View details.

Source distribution (sdist)

Source distribution for talos-contracts 1.1.15
File Size Uploaded Provenance
talos_contracts-1.1.15.tar.gz 10.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for talos-contracts 1.1.15
File Interpreter ABI Platform
talos_contracts-1.1.15-py3-none-any.whl Python 3 none any Details

Total release size: 21.3 kB

Release files / talos_contracts-1.1.15.tar.gz

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL talos_contracts-1.1.15.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7f6af85f741ee7011f90ce8b9b23377a52cfe12d2bdfd1f1298e2a363fc0a95f
BLAKE2b-256 checksum
How to use checksums
73f6fa07db30789bc65c8f1ea70acfb88c65a59a664e443289daac64555b985e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Release files / talos_contracts-1.1.15-py3-none-any.whl

Loss of provenance

This file belongs to a release without provenance metadata, despite a prior release including this data.

We recommend further investigation before installing this file. View details.

Download URL talos_contracts-1.1.15-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a13f0366c51c11373675e198697cc9ad66afb34b952f2b3331c48c76d0ae4d31
BLAKE2b-256 checksum
How to use checksums
8f6bfaf4d83fe6531b0f95140664d0f8d2e93f62e1553ebabeb1fbd9201cbf74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.19

Security for talos-contracts 1.1.15

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.

Loss of provenance

A previous release of these files had provenance metadata, but this release does not.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Release comparison

  • Removed 1.0.0 2 files With provenance
  • Added 1.1.15 2 files Without provenance

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