Python
The Python library lets you write Spade blocks as plain Python functions with type hints. The library handles reading inputs, loading parameters from params.yaml, and writing outputs.
Prerequisites🔗
- Python 3.12 or later
uvpackage manager (recommended) orpip- The Spade CLI installed (Installation guide)
Installation🔗
Add spade as a dependency in your pyproject.toml, or install it directly:
pip install spadeWith uv:
uv add spadeQuickstart
Create your first Python block step by step.
Read →Types
All available Spade types in the Python library.
Read →Handler Functions
Writing handler functions with type hints for Spade blocks.
Read →Manifest Generation
Auto-generating block manifests from Python type hints.
Read →Examples
Complete worked examples of Python blocks.
Read →