Skip to main content

pinboard-sdk

Durable objects for Python: one live instance of your class per id across a fleet, activated on the first request, with its own HTTP surface. Imports as pinboard. Part of harness-sdk, with statewire and harness-sdk.

Install

uv add pinboard-sdk

Extras: uv add "pinboard-sdk[postgres]", uv add "pinboard-sdk[psutil]".

Use

from fastapi import FastAPI
from pinboard import PinboardAPI, Worker, route
from pinboard.durability import MemoryStateStore

class Counter(PinboardAPI):
    async def lifespan(self):
        self.count = 0
        yield

    @route.post("/increment")
    async def increment(self):
        self.count += 1
        return {"id": self.id, "count": self.count}

worker = Worker(hosts={"/counters": Counter}, state_store=MemoryStateStore())
app = FastAPI()
app.include_router(worker)

Docs

Metadata

Release files for pinboard-sdk 0.18.0

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

Source distribution (sdist)

Source distribution for pinboard-sdk 0.18.0
File Size Uploaded Provenance Actions
pinboard_sdk-0.18.0.tar.gz 165.2 kB Without provenance Details for pinboard_sdk-0.18.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pinboard-sdk 0.18.0
File Interpreter ABI Platform Actions
pinboard_sdk-0.18.0-py3-none-any.whl Python 3 none any Details for pinboard_sdk-0.18.0-py3-none-any.whl

Total release size: 272.9 kB

Release files / pinboard_sdk-0.18.0.tar.gz

Download URL pinboard_sdk-0.18.0.tar.gz
Size 165.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d04bb74969bee8d9d3162c3fcd08df8a3f2afcf475dc8c9becc12eab97f81f44
BLAKE2b-256 checksum
How to use checksums
3017edce523046e08ce6fd7a3976adcec63a93fcaa13e787305a9bda79130285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pinboard_sdk-0.18.0-py3-none-any.whl

Download URL pinboard_sdk-0.18.0-py3-none-any.whl
Size 107.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49c01b758f7ce256e298115548f18246966f64378e08fc2cc06f4c2f7e7da5c5
BLAKE2b-256 checksum
How to use checksums
a088b5bf13675b9b3a3f6f9e3724fd3f7e036a5d3cf84ff49ab9d0a0f9b4d157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pinboard-sdk 0.18.0

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.

Release history Release notifications | RSS feed

This release

0.18.0 This release

2 release files No provenance

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