This release is a pre-release and may not be stable for production use.
jetpack-sdk
Lightweight, zero-dependency Python Worker SDK for JetPack local IPC, zero-copy binary framing, and sandboxed GPU worker orchestration.
Installation
pip install jetpack-sdk
Or using uv:
uv add jetpack-sdk
For faster Cython-accelerated MsgPack header encoding/decoding, install the optional msgpack extra (otherwise jetpack-sdk uses its built-in pure-Python MsgPack codec with zero external runtime dependencies):
pip install "jetpack-sdk[msgpack]"
Note: When running inside a worker managed by
jetpack-daemon,jetpack-sdkis also embedded offline inside the daemon and provisioned into.venvautomatically ifrequirements = ["jetpack-sdk"]is declared inapp.toml.
Quick Start
from jetpack_sdk import JetPackClient
with JetPackClient() as client:
while True:
frame = client.read_frame()
if frame is None:
break # Daemon closed IPC channel
if frame.opcode == "worker.ping":
client.send_frame(
opcode="worker.pong",
payload=frame.payload or b"pong",
channel_id=frame.channel_id,
correlation_id=frame.correlation_id,
)
Typed Opcode Contracts (@opcode)
Decorate handlers with @opcode and generate strict TypeScript JetPackOpcodeMap definitions via jetpack codegen:
from pydantic import BaseModel
from jetpack_sdk import JetPackClient, opcode
class ResizeMeta(BaseModel):
width: int
height: int
@opcode("image.resize", request=ResizeMeta, response=dict, binary=True)
def handle_resize(client: JetPackClient, frame) -> None:
mv = memoryview(frame.payload)
# Process binary bytes zero-copy...
client.send_frame(
opcode="image.resize.ok",
payload=bytes(mv),
channel_id=frame.channel_id,
correlation_id=frame.correlation_id,
)
Runtime Environment Properties (JetPackClient)
Inside a sandboxed worker managed by jetpack-daemon, JetPackClient exposes host-sanitized runtime properties:
client.app_home(Path): App's isolated private persistent data directory (JETPACK_APP_HOME,<appdata_root>/<app_id>), pre-mounted read-write without needing a[volumes.<name>]folder picker.client.language(str): Active UI language tag injected viaJETPACK_LANG(normalized lowercase primary BCP-47 tag with automatic"en"fallback).client.proxy_endpoint(Optional[str]): Userspace outbound proxy URL (JETPACK_PROXY_ENDPOINT/HTTP_PROXY/ALL_PROXY) when[permissions].network_allowlistis configured.
Documentation
Metadata
Release files for jetpack-sdk 0.1.3rc3
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 |
|---|---|---|---|---|
| jetpack_sdk-0.1.3rc3.tar.gz | 12.7 kB | Without provenance | Details for jetpack_sdk-0.1.3rc3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jetpack_sdk-0.1.3rc3-py3-none-any.whl | Python 3 | none | any | Details for jetpack_sdk-0.1.3rc3-py3-none-any.whl |
Total release size: 24.8 kB
Release files / jetpack_sdk-0.1.3rc3.tar.gz
| Download URL | jetpack_sdk-0.1.3rc3.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8dbbd075bcc1994743a43c7a46f0784e8c86af4d10a298a61bc947931e33056
|
|
BLAKE2b-256 checksum How to use checksums |
eeaa4c87228fd6219c4b5516bc383d51bf05bab4e69a4413da25d081b25b2117
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / jetpack_sdk-0.1.3rc3-py3-none-any.whl
| Download URL | jetpack_sdk-0.1.3rc3-py3-none-any.whl |
|---|---|
| Size | 12.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25a51e681373f7a4b70a008df722ede7a8582813a02b3aa6a310aab91242345e
|
|
BLAKE2b-256 checksum How to use checksums |
9f212f7243adc6d7c0a12659036df13b004fb99a1fcb2cb3d07df2a055144081
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for jetpack-sdk 0.1.3rc3
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.