Skip to main content

A database-backed catalog for defining and managing Pandera schemas.

Project description

pandera-catalog logo pandera-catalog

Run Tests PyPI Coverage Python Versions License Open Issues

Overview

pandera-catalog is a Python package that provides a database-backed catalog for registering, looking up, and managing Pandera schemas. It is designed to grow into a SQLAlchemy-connected (SQLite initially) registry of schema entries, validation rules, and schema metadata — keeping schemas organized, discoverable, and version-aware.

Installation

Install the base package:

pip install pandera-catalog

Or with uv:

uv add pandera-catalog

Install optional extras for schema validation helpers using Pydantic:

pip install "pandera-catalog[schema]"

Quick Usage

import pandera.pandas as pa
from pandera_catalog import PanderaCatalog

# Create a catalog
catalog = PanderaCatalog()

# Define a schema
schema = pa.DataFrameSchema(
    columns={
        "id": pa.Column(int),
        "value": pa.Column(float, pa.Check.greater_than(0)),
    }
)

# Register the schema
catalog.register("my_schema", schema)

# Look up the schema
retrieved = catalog.get("my_schema")
print(retrieved)

# List all registered schemas
print(catalog.list())

Loading schemas from YAML

from pathlib import Path
from pandera_catalog import PanderaCatalog
from pandera_catalog.schemas import load_schema_from_yaml

catalog = PanderaCatalog()
schema = load_schema_from_yaml(Path("schemas/my_schema.yaml"))
catalog.register("my_schema", schema)

See the documentation and examples for more detail.

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

pandera_catalog-0.3.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandera_catalog-0.3.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file pandera_catalog-0.3.0.tar.gz.

File metadata

  • Download URL: pandera_catalog-0.3.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pandera_catalog-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5c6c31b33a0c2335efe3dbb7e97c06a5378d55bd4415f493a5caa846002f902f
MD5 db3c6b9e56a5727c8d1fe0a8241a3f68
BLAKE2b-256 e1d662d7784eb31d9227e8a4744603ae63f3e7bda5466134c5a24cd1a4244ddc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandera_catalog-0.3.0.tar.gz:

Publisher: publish_to_pypi.yml on elphick/pandera-catalog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pandera_catalog-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pandera_catalog-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b833474e4339de30703fbee8e1bef4ee780c2f03451a2b2e4b67c430ede7cd9
MD5 68178e49ba503660487f72be4b071ba0
BLAKE2b-256 6021c2a615c443fe0af365632cee00a734a5f7a476e6a722e61bbd760fac2448

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandera_catalog-0.3.0-py3-none-any.whl:

Publisher: publish_to_pypi.yml on elphick/pandera-catalog

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page