Skip to main content

PyIngestKit — From any source to reliable datasets

From any source to reliable datasets.
Acquire  →  Preserve RAW  →  Validate  →  Publish

CI Security PyPI version Python 3.11–3.14 License: MIT Docs


PyIngestKit is a lightweight, composable Python framework for reliable, traceable and replayable batch ingestion.

It focuses strictly on how to ingest data reliably — preserving durable RAW acquisition evidence, producing immutable content-addressed dataset versions, and enforcing atomic compare-and-swap (CAS) publications with zero accidental overwrites.

External orchestrators (Airflow, Dagster, Prefect) decide when to run. PyIngestKit guarantees how it runs safely.


⚡ Highlights

  • 🛡️ Governed CAS Publication — Atomic compare-and-swap with durable ledgers (PostgreSQL / Memory), retention holds, guarded GC, and governed rollback.
  • 📦 Zero-Bloat Core — Pure standard library core by default. Heavy connectors (psycopg, boto3, httpx, pyarrow) are strictly opt-in extras.
  • 🔄 Strict Deterministic Replay — Replay runs from verified historical RAW artifacts; never silently re-fetches live external sources.
  • 🩺 Built-in CLI & Self-Diagnostics — Standardized pik command line with instant environment health check via pik doctor.

🚀 Quickstart (30 seconds)

1. Installation

# Base framework (zero heavy dependencies)
pip install pyingestkit

# Or with specific providers
pip install "pyingestkit[postgres,s3,http]"

2. Run an Ingestion Pipeline

from pathlib import Path
from pyingestkit import IngestionDefinition, IngestionRuntime, Source
from pyingestkit.adapters.filesystem import FileArtifactStore, FileSourceConnector
from pyingestkit.application.decoders import DecoderRegistry
from pyingestkit.application.sources import SourceRegistry
from pyingestkit.decoders import CsvDecoder
from pyingestkit.stores import FileDatasetVersionStore

root = Path("./.pyingest")

runtime = IngestionRuntime(
    sources=SourceRegistry([FileSourceConnector()]),
    decoders=DecoderRegistry([CsvDecoder()]),
    artifacts=FileArtifactStore(root=root / "artifacts"),
    versions=FileDatasetVersionStore(root=root / "datasets"),
)

result = runtime.run(
    IngestionDefinition(
        name="customers_pipeline",
        source=Source.file(path="./data/customers.csv"),
        decoder="csv",
        dataset="customers",
    )
)

print(f"Status: {result.status.value} | Version: {result.version_id}")

🛠️ CLI: pik

PyIngestKit includes a fast CLI with zero runtime overhead on startup:

# Run system and environment diagnostics
pik doctor

# Inspect environment in JSON format
pik doctor --json

🧩 Providers & Optional Extras

Extra Capabilities Drivers Installed
pyingestkit (base) Core runtime, Filesystem, Memory, CSV, JSON(L) Standard library
pyingestkit[http] Robust HTTP(S) acquisition with retry policies httpx
pyingestkit[postgres] PostgreSQL targets, staging & publication ledger psycopg, sqlalchemy
pyingestkit[s3] S3 / MinIO / Ceph / R2 object storage artifacts boto3
pyingestkit[parquet] High-performance Parquet format decoder pyarrow
pyingestkit[excel] Excel .xlsx / .xls spreadsheets decoding openpyxl

📚 Documentation & Resources


📄 License

Distributed under the MIT License.

Metadata

Release files for pyingestkit 2.2.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 pyingestkit 2.2.0
File Size Uploaded Provenance Actions
pyingestkit-2.2.0.tar.gz 245.1 kB Without provenance Details for pyingestkit-2.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 598.5 kB

Release files / pyingestkit-2.2.0.tar.gz

Download URL pyingestkit-2.2.0.tar.gz
Size 245.1 kB
Tags Source
SHA-256 checksum
How to use checksums
390181dbdb1817805b16e54caa190270bc1a19de5d803a2c06f25c82752e8b32
BLAKE2b-256 checksum
How to use checksums
8746846d4481f7a9828b55edb0b28e721fbb2b931a095dd067650dbd8b380725
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pyingestkit-2.2.0-py3-none-any.whl

Download URL pyingestkit-2.2.0-py3-none-any.whl
Size 353.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed609874102d40d6c4bddf5472fbbcc88c2b75c36d9ca8727c4ed26c9c753941
BLAKE2b-256 checksum
How to use checksums
04954d94864bec09165bfa09b3d830a65724e9a372e1642c9f6b823bc5f3eecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pyingestkit 2.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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