Skip to main content

Spade SDK

Spade SDK provides basic classes to implement Spade Files and Processes. For more information about Spade, please visit Spade

It has no dependencies on other Python libraries, and allows development for Spade without a need to install the full Spade app.

Installation

pip install spadesdk

Optional Dependencies

For file validation functionality, install with the pandera extra:

pip install spadesdk[pandera]

Usage

All core classes are available directly from the top-level package:

from spadesdk import Executor, Process, RunResult, File, FileProcessor, FileUpload, HistoryProvider, User

Basic objects

FileProcessor

FileProcessor processes the file uploaded by the user in the Spade app.

File Validation

The FileProcessor class includes a static validate method that can validate file data against a schema using the Pandera library. This method validates DataFrame data against a Frictionless schema defined in the File object.

Requirements:

  • The spadesdk[pandera] package must be installed (available as an optional dependency)
  • A valid Frictionless schema must be defined in Spade
# Validate DataFrame against the schema
FileProcessor.validate(file, dataframe)

Note: If Pandera is not installed, calling the validate method will raise an ImportError. If file.schema is None, a ValueError is raised.

Executor

Executor executes a Spade process, either by directly running Python code or by calling an external service.

HistoryProvider

HistoryProvider provides the history of a Spade from if the actual process is executed by an external service. If the process is executed in Spade, a HistoryProvider is not needed.

Note: The get_runs() method receives a request parameter that is expected to be a Django HTTP request object. HistoryProvider implementations are therefore coupled to Django.

Releasing

Releases are published to PyPI automatically via GitHub Actions when a version tag is pushed:

git tag 0.5.0
git push origin 0.5.0

The workflow builds a wheel and sdist with uv build, then publishes using OIDC trusted publishing (no API token needed). Requires a pypi environment configured in the GitHub repository settings.

Metadata

Release files for spadesdk 0.5.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 spadesdk 0.5.0
File Size Uploaded Provenance Actions
spadesdk-0.5.0.tar.gz 43.2 kB With provenance Details for spadesdk-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spadesdk 0.5.0
File Interpreter ABI Platform Actions
spadesdk-0.5.0-py3-none-any.whl Python 3 none any Details for spadesdk-0.5.0-py3-none-any.whl

Total release size: 72.9 kB

Release files / spadesdk-0.5.0.tar.gz

Download URL spadesdk-0.5.0.tar.gz
Size 43.2 kB
Tags Source
SHA-256 checksum
How to use checksums
74077dc702c3a6f019ece753b76f3d81edad5923ca86dcce5ef9169dbef469e6
BLAKE2b-256 checksum
How to use checksums
cc7031b63f4a02846ac3c6dc10d3cf5e0312c86b834857c970472ad6d55eb2d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2026.

Transparency log

Release files / spadesdk-0.5.0-py3-none-any.whl

Download URL spadesdk-0.5.0-py3-none-any.whl
Size 29.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
621e69f2ed0281ddeaa82dc5e0f677bb9ac7cb87dae1c83d31f0a0a742a0d3af
BLAKE2b-256 checksum
How to use checksums
c5aca4943e037fb15ea7eb318a7dc1d14b3ea5360c204c99f443114249938058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2026.

Transparency log

Security for spadesdk 0.5.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spadesdk-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 15, 2026.

Transparency log

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