Skip to main content

SATIF SDK

License: MIT Python Version

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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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)

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)

Source distribution for satif-sdk 0.2.5
File Size Uploaded
satif_sdk-0.2.5.tar.gz 69.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for satif-sdk 0.2.5
File Interpreter ABI Platform
satif_sdk-0.2.5-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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