Skip to main content

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.

Release files for sello 0.1.13

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

Source distribution (sdist)

Source distribution for sello 0.1.13
File Size Uploaded
sello-0.1.13.tar.gz 14.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sello 0.1.13
File Interpreter ABI Platform
sello-0.1.13-py3-none-any.whl Python 3 none any Details

Total release size: 27.0 kB

Release files / sello-0.1.13.tar.gz

Download URL sello-0.1.13.tar.gz
Size 14.4 kB
Tags Source
SHA-256 checksum
How to use checksums
06c930adc11c84380bf84843856174e48d3f72f41695b57fb399dd0488c285d3
BLAKE2b-256 checksum
How to use checksums
def50123dc9f090fecb43d5b17b84ffb508cfb86edda97f3d78ef5d9c6786a58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 16, 2026.

Transparency log

Release files / sello-0.1.13-py3-none-any.whl

Download URL sello-0.1.13-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2843d7381a7f59b0cd01a3d5a27872c54f731521cdd81aaa351dfb91438d49f
BLAKE2b-256 checksum
How to use checksums
43ecfd58af6d9a2f1fe05c3dad58c091f8c7e123185e70082088c027175c4647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.13 This release

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

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