oblet — Python SDK
The Python client SDK for the oblet control plane. It is a hand-written native
surface over Buf-generated Connect plumbing, mirroring the Go reference SDK at
pkg/client: one client per service, native parameter and result types, typed
errors carrying the wire reason, point-in-time reads, and offline
capability-token attenuation. Both a synchronous Client and an asyncio
AsyncClient are provided over the same native types.
The package is self-contained — its own dependency closure, its own generated
stubs committed under src/oblet/ — and extracts to a standalone repository by
moving this directory.
Install
pip install oblet
Synchronous
import oblet
client = oblet.Client("https://control.example.com", token="<capability token>")
obj = client.object.head(oblet.object.HeadParams(workspace="ws", branch="main", key="doc.txt"))
print(obj.key, obj.size)
# Point-in-time read pinned to an audit leaf.
old = client.object.head(
oblet.object.HeadParams(workspace="ws", branch="main", key="doc.txt"),
oblet.CallOptions(at_leaf=42),
)
Asyncio
import oblet
client = await oblet.AsyncClient.connect("https://control.example.com", token="<capability token>")
obj = await client.object.head(oblet.object.HeadParams(workspace="ws", branch="main", key="doc.txt"))
AsyncClient is built through the await AsyncClient.connect(...) factory so the
one-shot health ping can run; everything else mirrors Client.
Typed errors
try:
client.object.head(oblet.object.HeadParams(workspace="ws", branch="main", key="missing"))
except oblet.PermissionDenied as err:
print(err.reason) # "pdp_denied"
except oblet.Error as err: # base of every wire error
print(oblet.reason_of(err))
Offline token attenuation
narrower = oblet.attenuate_token(token, ['resource == "doc1"'], ttl_seconds=3600, public_key=issuer_hex)
Layout
src/oblet/— the public package;__init__.pyre-exports only.src/oblet/<service>/— the native surface; the generated wire layer is thev1alpha1/subpackage beneath it.tests/— per-service tests against a real in-process Connect server, plus the conformance gates.
Development
make sdk-python-gen # regenerate the wire layer from api/proto
make sdk-python # ruff, pyright, pytest
See oblet-dev/design-docs/adr/0076-public-python-sdk.md for the design.
Metadata
Release files for oblet 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| oblet-0.0.0.tar.gz | 258.2 kB | Without provenance | Details for oblet-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oblet-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for oblet-0.0.0-py3-none-any.whl |
Total release size: 491.9 kB
Release files / oblet-0.0.0.tar.gz
| Download URL | oblet-0.0.0.tar.gz |
|---|---|
| Size | 258.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be10f0730e0f1c94aa8f6e9e9919d40a879c609af235ee921cb575bfccee2e1f
|
|
BLAKE2b-256 checksum How to use checksums |
f27ba3d7d476fbbfa94d5df753b0556734e1668c36a177c754df85b61b1ed7f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / oblet-0.0.0-py3-none-any.whl
| Download URL | oblet-0.0.0-py3-none-any.whl |
|---|---|
| Size | 233.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64e1d3a4da2e76c07f2a6693f8b55c1ac5717503aa959c4758adb66215c59168
|
|
BLAKE2b-256 checksum How to use checksums |
0f4dac959b170aefe80a8c8127a28a5b66245090db01e831fbf5c54a9464890f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for oblet 0.0.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.