Spade SDK
Project description
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]
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.
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spadesdk-0.4.0.tar.gz.
File metadata
- Download URL: spadesdk-0.4.0.tar.gz
- Upload date:
- Size: 40.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e49285fc333bb0df55a85effbf3f27f12beb23ea0c18fdbcc7b891e966c1e16
|
|
| MD5 |
5ebae7dd1d8c1a9c7d95238cafd6c922
|
|
| BLAKE2b-256 |
c0b793106e1c762ac3bccbb65351b10358f7b8d3b07bd41349748d8fd9d37358
|
File details
Details for the file spadesdk-0.4.0-py3-none-any.whl.
File metadata
- Download URL: spadesdk-0.4.0-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7dde59a185ade16fd85fcf5053fbdcdd92770189da99ac23ebb2bfd7ec7771e
|
|
| MD5 |
d28199fc2ad73cf4ac7aab8eab746bbe
|
|
| BLAKE2b-256 |
c7c26b2f06075be112a088e7f4c509ecbab5fb18f5bd1cf118b5bbd78c79bfff
|