SDK for building apps on RunIt
Project description
RunIt SDK
Python SDK for building apps on RunIt.
Installation
The SDK is automatically available in the RunIt runtime. For local development:
pip install -e .
Or install from PyPI:
pip install runit-sdk
Quick Start
from runit import app, remember
@app.action
def greet(name: str) -> dict:
visits = (remember("visits") or 0) + 1
remember("visits", visits)
return {"message": f"Hello, {name}! Visit #{visits}"}
Paste this into RunIt, hit "Go Live," and share the link.
Features
@app.action- Mark functions as runnable actions with auto-generated UIremember()/forget()- Built-in key-value storage across runsstorage- Full storage API (get,set,delete,list)save_artifact()- Write outputs that users can downloadsave_dataframe()- Save pandas/polars DataFrames in multiple formatscontext- Access secrets and uploaded JSON data- Zero Dependencies - Core functionality has no required dependencies
Documentation
See the SDK Guide for complete documentation and examples.
Sample Apps
Check out the sample apps in ../samples/:
hello-world- Minimal greeting actionextract-company- URL scraping with artifactsimage-analysis- File upload and image processingbulk-processor- Batch processing with error handlingopendraft- Multi-action app example
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run tests with coverage
pytest --cov=runit --cov-report=html
License
MIT
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 runit_sdk-0.1.2.tar.gz.
File metadata
- Download URL: runit_sdk-0.1.2.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89220707dded51c3ee0e654bdf3abd2fc98809e5c6c256daa7dc23829ab0136f
|
|
| MD5 |
15675d9fb8890998b634785e66f69a7b
|
|
| BLAKE2b-256 |
0b24ccbdc0bbc0501e99133c8a41f894b57c658f6da6b3df0fb1801d5c9790bd
|
Provenance
The following attestation bundles were made for runit_sdk-0.1.2.tar.gz:
Publisher:
publish.yml on buildingopen/runit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runit_sdk-0.1.2.tar.gz -
Subject digest:
89220707dded51c3ee0e654bdf3abd2fc98809e5c6c256daa7dc23829ab0136f - Sigstore transparency entry: 1136102181
- Sigstore integration time:
-
Permalink:
buildingopen/runit@4d2072023cc3715b67f3b35c22fea27e7c8859b8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/buildingopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4d2072023cc3715b67f3b35c22fea27e7c8859b8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file runit_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: runit_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f65feb1329bfd514584aa41fe415da90f6df98a91e8599b54a5bf4802aba08b
|
|
| MD5 |
f695b572795e6e923eb1a4f2bacdf213
|
|
| BLAKE2b-256 |
6c70e54f1e1cc73eeb4067ddd7fa03eee8ccbfa7137c322b8894f0ecfd109369
|
Provenance
The following attestation bundles were made for runit_sdk-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on buildingopen/runit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
runit_sdk-0.1.2-py3-none-any.whl -
Subject digest:
0f65feb1329bfd514584aa41fe415da90f6df98a91e8599b54a5bf4802aba08b - Sigstore transparency entry: 1136102222
- Sigstore integration time:
-
Permalink:
buildingopen/runit@4d2072023cc3715b67f3b35c22fea27e7c8859b8 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/buildingopen
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4d2072023cc3715b67f3b35c22fea27e7c8859b8 -
Trigger Event:
push
-
Statement type: