Skip to main content

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 UI
  • remember() / forget() - Built-in key-value storage across runs
  • storage - Full storage API (get, set, delete, list)
  • save_artifact() - Write outputs that users can download
  • save_dataframe() - Save pandas/polars DataFrames in multiple formats
  • context - 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 action
  • extract-company - URL scraping with artifacts
  • image-analysis - File upload and image processing
  • bulk-processor - Batch processing with error handling
  • opendraft - 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

runit_sdk-0.1.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

runit_sdk-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

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

Hashes for runit_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 89220707dded51c3ee0e654bdf3abd2fc98809e5c6c256daa7dc23829ab0136f
MD5 15675d9fb8890998b634785e66f69a7b
BLAKE2b-256 0b24ccbdc0bbc0501e99133c8a41f894b57c658f6da6b3df0fb1801d5c9790bd

See more details on using hashes here.

Provenance

The following attestation bundles were made for runit_sdk-0.1.2.tar.gz:

Publisher: publish.yml on buildingopen/runit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for runit_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f65feb1329bfd514584aa41fe415da90f6df98a91e8599b54a5bf4802aba08b
MD5 f695b572795e6e923eb1a4f2bacdf213
BLAKE2b-256 6c70e54f1e1cc73eeb4067ddd7fa03eee8ccbfa7137c322b8894f0ecfd109369

See more details on using hashes here.

Provenance

The following attestation bundles were made for runit_sdk-0.1.2-py3-none-any.whl:

Publisher: publish.yml on buildingopen/runit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page