Python SDK for building SuperPlane planelets
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file planelet_sdk-0.1.0.tar.gz.
File metadata
- Download URL: planelet_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fbc86ca7dd60516dc4df70e77c773441663ca0ff5d2e30e897fc3ad87562320
|
|
| MD5 |
04ce5c1fd5b0e77d7982ad8c239e2d8d
|
|
| BLAKE2b-256 |
2354457df82c3e500e102b1254b4f1b46f4763441f83399c98614c5c8dba1661
|
File details
Details for the file planelet_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: planelet_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87c43da9a9b59609d0e7ed779c10556b8c7480bafa7a727fa4ef5396d69dda76
|
|
| MD5 |
036da9b8159daca15211851c3f2bd0da
|
|
| BLAKE2b-256 |
07a020b86a624d625493dafd64ba5d4703687dcd1060a0c57eec02de228fabbd
|