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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06c930adc11c84380bf84843856174e48d3f72f41695b57fb399dd0488c285d3
|
|
| MD5 |
3f5c4da3a6193bd4cbc4ff1c36059e72
|
|
| BLAKE2b-256 |
def50123dc9f090fecb43d5b17b84ffb508cfb86edda97f3d78ef5d9c6786a58
|
Provenance
The following attestation bundles were made for sello-0.1.13.tar.gz:
Publisher:
release.yml on juanfiguera/sello
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sello-0.1.13.tar.gz -
Subject digest:
06c930adc11c84380bf84843856174e48d3f72f41695b57fb399dd0488c285d3 - Sigstore transparency entry: 1831781048
- Sigstore integration time:
-
Permalink:
juanfiguera/sello@6cd7e287d55d73928dc6a5dfecc95bccd8c87316 -
Branch / Tag:
refs/tags/v0.1.13 - Owner: https://github.com/juanfiguera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6cd7e287d55d73928dc6a5dfecc95bccd8c87316 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2843d7381a7f59b0cd01a3d5a27872c54f731521cdd81aaa351dfb91438d49f
|
|
| MD5 |
9a2c46b9ab5886766090cc7686aa4226
|
|
| BLAKE2b-256 |
43ecfd58af6d9a2f1fe05c3dad58c091f8c7e123185e70082088c027175c4647
|
Provenance
The following attestation bundles were made for sello-0.1.13-py3-none-any.whl:
Publisher:
release.yml on juanfiguera/sello
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sello-0.1.13-py3-none-any.whl -
Subject digest:
f2843d7381a7f59b0cd01a3d5a27872c54f731521cdd81aaa351dfb91438d49f - Sigstore transparency entry: 1831781232
- Sigstore integration time:
-
Permalink:
juanfiguera/sello@6cd7e287d55d73928dc6a5dfecc95bccd8c87316 -
Branch / Tag:
refs/tags/v0.1.13 - Owner: https://github.com/juanfiguera
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@6cd7e287d55d73928dc6a5dfecc95bccd8c87316 -
Trigger Event:
release
-
Statement type: