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.2.0.tar.gz (16.4 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.2.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pandera_catalog-0.2.0.tar.gz
  • Upload date:
  • Size: 16.4 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.2.0.tar.gz
Algorithm Hash digest
SHA256 294c051cb6ff48262121a6bd4ea24418c9efe11b74d1246153639f1c5e6a550c
MD5 7a419852211255b69350ca811d152229
BLAKE2b-256 7767b2a9f8bb4db409849fbe37f23c1233a0792dc4808d9c8561fbc087ab5019

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandera_catalog-0.2.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.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pandera_catalog-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41a38e5cce4c8ccf50d7f568f72cd39a4cadca0c2cc65da789dc94f483594992
MD5 01a1aea500d16be29fe4b09b1491e8c7
BLAKE2b-256 e0ad560902536464c9e34828fcbb12900509a06d5d82c864e916fef0b754247b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pandera_catalog-0.2.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