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)

SQLite

For a SQLite database per object, stored on S3, use pinboard-sqlite and its pinboard_sqlite.pinboard adapter.

Docs

Metadata

Release files for pinboard-sdk 0.18.1

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.1
File Size Uploaded Provenance Actions
pinboard_sdk-0.18.1.tar.gz 165.8 kB Without provenance Details for pinboard_sdk-0.18.1.tar.gz

Built distribution (wheel)

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

Total release size: 273.8 kB

Release files / pinboard_sdk-0.18.1.tar.gz

Download URL pinboard_sdk-0.18.1.tar.gz
Size 165.8 kB
Tags Source
SHA-256 checksum
How to use checksums
11b112d66806fb2cf0663be1ec48ff5f1fae39c53767601e57271a4720a84bc5
BLAKE2b-256 checksum
How to use checksums
d5d62c677ecb9f556134e1060d4eced34fc592b6ca1867f95560b731e1d86041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

Download URL pinboard_sdk-0.18.1-py3-none-any.whl
Size 108.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04592e6b2c594f2c3fbff229e9f4a8634cafb0a9d1221d7b0e064c9008fa5fc4
BLAKE2b-256 checksum
How to use checksums
3a33a3a70d1f2d325c4fd94c0c422f388f31cfcda2eaff5d8dbfe70d85fab340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for pinboard-sdk 0.18.1

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.1 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