SuperPlane Planelet SDK for Python
Build custom SuperPlane integrations in Python. Define actions and webhook triggers with decorators, and the SDK serves the full Planelet protocol over HTTP.
Quick Start
1. Create a new project
mkdir my-planelet && cd my-planelet
python -m venv .venv && source .venv/bin/activate
pip install superplane-planelet-sdk
2. Write your Planelet
# main.py
from superplane import create_planelet, Param, ActionContext
planelet = create_planelet(
id="my-planelet",
label="My Planelet",
description="Does useful things",
)
@planelet.action(
"hello",
label="Say Hello",
description="Generates a greeting",
parameters={
"name": Param(label="Name", type="string", required=True),
},
)
async def hello(ctx: ActionContext):
return {"message": f"Hello, {ctx.parameters['name']}!"}
planelet.listen(3001)
3. Run it
python main.py
# Uvicorn running on http://0.0.0.0:3001
4. Connect to SuperPlane
- In SuperPlane, add a new Planelets integration
- Set Server URL to your Planelet server's address
- Optionally set an Auth Token
- Save — SuperPlane fetches your manifest and the integration goes ready
Documentation
See PLANELET-DOCS.md for the full SDK reference, trigger/webhook guide, and protocol details.
Example
See examples/quotes.py for a complete example with two actions. Run it:
cd examples
python quotes.py
Then connect SuperPlane to http://localhost:3001.
Metadata
Release files for planelet-sdk 0.1.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 | |
|---|---|---|---|
| planelet_sdk-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| planelet_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.1 kB
Release files / planelet_sdk-0.1.0.tar.gz
| Download URL | planelet_sdk-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fbc86ca7dd60516dc4df70e77c773441663ca0ff5d2e30e897fc3ad87562320
|
|
BLAKE2b-256 checksum How to use checksums |
2354457df82c3e500e102b1254b4f1b46f4763441f83399c98614c5c8dba1661
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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 / planelet_sdk-0.1.0-py3-none-any.whl
| Download URL | planelet_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87c43da9a9b59609d0e7ed779c10556b8c7480bafa7a727fa4ef5396d69dda76
|
|
BLAKE2b-256 checksum How to use checksums |
07a020b86a624d625493dafd64ba5d4703687dcd1060a0c57eec02de228fabbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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}
|