Skip to main content

Render Workflows Python SDK

A Python SDK for defining and executing tasks in the Render Workflows system.

⚠️ Early Access: This SDK is in early access and subject to breaking changes without notice.

Installation

pip install render_sdk

Usage

Defining Tasks

Use the Workflows class to define and register tasks:

from render_sdk import Workflows

app = Workflows()

@app.task
def square(a: int) -> int:
    """Square a number."""
    return a * a


@app.task
async def add_squares(a: int, b: int) -> int:
    """Add the squares of two numbers."""

    # Execute subtasks
    result1 = await square(a)
    logger.info(f"Square result: {result1}")
    result2 = await square(b)
    logger.info(f"Square result: {result2}")

    return result1 + result2

You can also specify task parameters like timeout and plan:

@app.task(timeout=60, plan="starter")
def quick_task(x: int) -> int:
    return x + 1

Running the Task Server

Run your workflow application using the CLI command:

render ea tasks dev -- python main.py

Features

  • Decorator-based task registration
  • Type-safe task execution
  • Retry configuration support
  • Environment-based configuration
  • Generated client for SDK server communication

Development

This project uses Poetry for dependency management and tox for testing across multiple Python versions.

Setup

# Install Poetry (if not already installed)
curl -sSL https://install.python-poetry.org | python3 -

# Install dependencies
poetry install

# Activate virtual environment
poetry shell

Testing

# Run tests
poetry run pytest

# Run tests with coverage
poetry run tox -e coverage

# Run tests across all Python versions
poetry run tox

# Run specific Python version
poetry run tox -e py313

Code Quality

# Check formatting and linting
poetry run tox -e format
poetry run tox -e lint

# Fix formatting issues
poetry run tox -e format-fix
poetry run tox -e lint-fix

# Run all quality checks
poetry run tox -e format,lint

Supported Python Versions

  • Python 3.10+
  • Tested on Python 3.10, 3.11, 3.12, 3.13, 3.14

Metadata

Release files for render-sdk 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for render-sdk 0.3.0
File Size Uploaded Provenance Actions
render_sdk-0.3.0.tar.gz 204.6 kB Without provenance Details for render_sdk-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for render-sdk 0.3.0
File Interpreter ABI Platform Actions
render_sdk-0.3.0-py3-none-any.whl Python 3 none any Details for render_sdk-0.3.0-py3-none-any.whl

Total release size: 887.1 kB

Release files / render_sdk-0.3.0.tar.gz

Download URL render_sdk-0.3.0.tar.gz
Size 204.6 kB
Tags Source
SHA-256 checksum
How to use checksums
19dce587d7dd87906b246df69228f79b90d600174905453becd63e0bb9e45762
BLAKE2b-256 checksum
How to use checksums
2ed43cdf19bf0ffdc2accbfee46c36f01555b83f8df0292929c34b5cf5c13e48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.3 Darwin/25.2.0

Release files / render_sdk-0.3.0-py3-none-any.whl

Download URL render_sdk-0.3.0-py3-none-any.whl
Size 682.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
660def7294150a9d36880b53b41f04927cf8a7bcda53be671d4bbd9b92e2cace
BLAKE2b-256 checksum
How to use checksums
1b06a0110d87b10e65403faa47293fe56b60f8dc941d9d187528fdf8d8e7ea1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.14.3 Darwin/25.2.0

Security for render-sdk 0.3.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page