Skip to main content

Python SDK for Render Workflows

Project description

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 @task decorator to define tasks:

from render_sdk.workflows import task

@task
def square(a: int) -> int:
    return a * a

@task
def add_squares(a: int, b: int) -> int:
    result1 = ctx.execute_task(square, a)
    result2 = ctx.execute_task(square, b)
    return result1 + result2

Running the Task Server

from render_sdk.workflows import start

if __name__ == "__main__":
    start()

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

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

render_sdk-0.2.0.tar.gz (199.9 kB view details)

Uploaded Source

Built Distribution

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

render_sdk-0.2.0-py3-none-any.whl (672.4 kB view details)

Uploaded Python 3

File details

Details for the file render_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: render_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 199.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0

File hashes

Hashes for render_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f53ea473d01073d061fb45a6de485537d0d9a5e75e13d3193d15d212d5f4eeda
MD5 3f2ae52fe4542b19e19ea98b96e84e6d
BLAKE2b-256 eb7dda23065742303b141834b75c3121b180dabcb9f3834a3132709f59a0fcea

See more details on using hashes here.

File details

Details for the file render_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: render_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 672.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0

File hashes

Hashes for render_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c523556a01dd1de986c5f53422430958c1570d5b29a0b19cd5e51d827b2eba4
MD5 204987d363f4ffaec27625f56fb9e8aa
BLAKE2b-256 e7745100a5157ec06ff114122a4d45b2f00a722eb43a5db902c7c1293f7ed8d6

See more details on using hashes here.

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