Skip to main content

Python SDK for Sello service-signed AI agent receipts.

Project description

Sello Python SDK

Python support lives in sdks/python/ so the repository stays easy to scan:

  • sdks/typescript/ contains the TypeScript SDK and reference implementation.
  • sdks/python/src/sello/ contains the Python SDK.

The Python SDK mirrors the TypeScript service-side facade:

pip install sello
import sello

receipts = sello.service()

@receipts.tool("calendar.create_event")
def create_event(request):
    return calendar.events.create(request)

The service process emits receipts. It does not need the owner private key.

Quickstart Example

From the repository root, start the local dev log in one terminal:

npx --yes sello dev

Then run the Python example in another terminal:

python -m pip install ./sdks/python
python sdks/python/examples/quickstart_tool.py
npx --yes sello actions

The example reads .sello/dev.json, wraps a mock calendar action with @receipts.tool(...), emits one encrypted receipt, and then lets the Sello CLI verify it locally.

Local Development

For contributing to the SDK from the repository root:

python3 -m venv .venv
. .venv/bin/activate
python -m pip install ./sdks/python
python -m unittest discover -s sdks/python/tests

Current Scope

The Python SDK currently focuses on service-side receipt emission:

  • env-first sello.service() config,
  • @receipts.tool(...) decorator support,
  • compact JWS verification,
  • HPKE encryption,
  • COSE_Sign1 receipt signing,
  • memory and HTTP log adapters,
  • background submission with flush().

Owner-side viewing is still handled by the Sello CLI and lower-level protocol tooling.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sello-0.1.13.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sello-0.1.13-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file sello-0.1.13.tar.gz.

File metadata

  • Download URL: sello-0.1.13.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sello-0.1.13.tar.gz
Algorithm Hash digest
SHA256 06c930adc11c84380bf84843856174e48d3f72f41695b57fb399dd0488c285d3
MD5 3f5c4da3a6193bd4cbc4ff1c36059e72
BLAKE2b-256 def50123dc9f090fecb43d5b17b84ffb508cfb86edda97f3d78ef5d9c6786a58

See more details on using hashes here.

Provenance

The following attestation bundles were made for sello-0.1.13.tar.gz:

Publisher: release.yml on juanfiguera/sello

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sello-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: sello-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sello-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f2843d7381a7f59b0cd01a3d5a27872c54f731521cdd81aaa351dfb91438d49f
MD5 9a2c46b9ab5886766090cc7686aa4226
BLAKE2b-256 43ecfd58af6d9a2f1fe05c3dad58c091f8c7e123185e70082088c027175c4647

See more details on using hashes here.

Provenance

The following attestation bundles were made for sello-0.1.13-py3-none-any.whl:

Publisher: release.yml on juanfiguera/sello

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page