SATIF SDK
Core implementation of the SATIF data standardization and transformation capabilities.
Table of Contents
Overview
The satif-sdk package provides concrete implementations of the SATIF toolkit's standardization and transformation capabilities without AI assistance. It serves as the foundation for the AI-powered satif-ai package while remaining usable as a standalone library for data processing workflows.
Key functionality includes:
- Converting heterogeneous source files (CSV, Excel, PDF, etc.) into the Standardized Data Interoperable Format (SDIF)
- Executing transformation logic to convert SDIF data into target output formats
- Supporting both manual code-based workflows and the AI-assisted pipelines in the higher-level packages
Installation
From PyPI
pip install satif-sdk
With AI capabilities (includes satif-ai)
pip install satif-sdk[ai]
From Source (for Development)
git clone https://github.com/syncpulse-solutions/satif.git
cd satif/libs/sdk
poetry install
Usage
Standardization
Convert input files to SDIF format:
from pathlib import Path
from satif_sdk.standardizers import CSVStandardizer
# Create a standardizer for CSV files
csv_standardizer = CSVStandardizer()
# Standardize a CSV file (or list of files) into an SDIF database
result = csv_standardizer.standardize(
input_path=["data.csv", "reference.csv"],
output_path="standardized_data.sdif",
overwrite=True
)
Transformation
Transform SDIF data using custom Python code:
from pathlib import Path
from satif_sdk.transformers import CodeTransformer
# Define transformation logic
def transform_data(conn):
"""
Transform SDIF data into the desired output format.
Args:
conn: SQLite connection to the SDIF database
Returns:
dict mapping filenames to their contents
"""
import pandas as pd
# Query data from SDIF tables
df = pd.read_sql_query("SELECT * FROM db1.data", conn)
# Apply transformations
df['calculated_value'] = df['value'] * 2
# Return output files
return {
"output.csv": df,
"summary.json": {"total_records": len(df), "average": df['value'].mean()}
}
# Create transformer and execute
transformer = CodeTransformer(function=transform_data)
result = transformer.export(
sdif="standardized_data.sdif",
output_path="output_directory"
)
print(f"Transformation outputs created at: {result}")
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Maintainer: Bryan Djafer (bryan.djafer@syncpulse.fr)
Metadata
Release files for satif-sdk 0.2.5
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 |
|---|---|---|---|---|
| satif_sdk-0.2.5.tar.gz | 69.3 kB | With provenance | Details for satif_sdk-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| satif_sdk-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for satif_sdk-0.2.5-py3-none-any.whl |
Total release size: 148.2 kB
Release files / satif_sdk-0.2.5.tar.gz
| Download URL | satif_sdk-0.2.5.tar.gz |
|---|---|
| Size | 69.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb937a69a52a62c369611e2778de7990cca892624eb5d7b755f3a774d20ecfc9
|
|
BLAKE2b-256 checksum How to use checksums |
7cd68e795770085ba0e120f521b855e3b01b22aec45c8afbbcbf48498a1094b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 22, 2025.
Transparency logRelease files / satif_sdk-0.2.5-py3-none-any.whl
| Download URL | satif_sdk-0.2.5-py3-none-any.whl |
|---|---|
| Size | 78.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92ac9aa6f2abf1670fdc7bd911bd9709ad86f1320847bcfc80cc415185e96f47
|
|
BLAKE2b-256 checksum How to use checksums |
721cfe62c1aa6ed098b863bd57d9b29ebd90aecdc136fba8ac0b6bca14b954af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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 22, 2025.
Transparency logSecurity for satif-sdk 0.2.5
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
Both files in this release have been uploaded with provenance metadata.
Attestation for satif_sdk-0.2.5.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 22, 2025.
Transparency logA 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.