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
Metadata
Release files for render-sdk 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| render_sdk-0.1.3.tar.gz | 171.0 kB | Without provenance | Details for render_sdk-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| render_sdk-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for render_sdk-0.1.3-py3-none-any.whl |
Total release size: 764.7 kB
Release files / render_sdk-0.1.3.tar.gz
| Download URL | render_sdk-0.1.3.tar.gz |
|---|---|
| Size | 171.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8aeb750b312171c4f04c76e06c7084ca0fdf7218640b50992c684c444ec23eda
|
|
BLAKE2b-256 checksum How to use checksums |
e3be86736262b3348172666646196039682ba74b69b1f84653d698fe901aa5e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0
|
Release files / render_sdk-0.1.3-py3-none-any.whl
| Download URL | render_sdk-0.1.3-py3-none-any.whl |
|---|---|
| Size | 593.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc91e66166e8e3c4f962dae50ab510d6c6694912f22015ccd5c4c6de5cc05832
|
|
BLAKE2b-256 checksum How to use checksums |
5a507971162fd0a478d8f7e77e487421f1f84f288a74ed8a27229d3dbcb2401f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/24.6.0
|
Security for render-sdk 0.1.3
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.