Skip to main content

Pulire

A lightweight DataFrame validation library for Pandas.

Auto Formatting

poetry run black .

Testing

Run the following command for unit tests:

poetry run pytest tests

Schema

Pulire requires a Schema which describes all columns in a given DataFrame.

from pulire import Schema, Column, validators, formatters

Schema([
    Column("temp", "Float64", [
        validators.minimum(-80),
        validators.maximum(65),
        formatters.decimals(1)
    ])
])

Validate

Pulire automatically removes values which fail the validation. Let's use the meteostat library to get some data:

from datetime import datetime
from meteostat import Hourly

df = Hourly("10637", datetime(2018, 1, 1), datetime(2018, 1, 1, 23, 59)).fetch()

print(df)

Now, we can get a valid copy of our Meteostat DataFrame by running our schema's validate method:

df = myschema.validate(df)

Lazy Validations

try:
    schema.validate(df, lazy=True)
except ValueError as error:
    print(error.args[0])

Metadata

Release files for pulire 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pulire 0.0.9
File Size Uploaded
pulire-0.0.9.tar.gz 5.9 kB Details

Built distribution (wheel)

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

Total release size: 18.1 kB

Release files / pulire-0.0.9.tar.gz

Download URL pulire-0.0.9.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5936373a64c147a506bb4f382bda2f782e7c8bf94d19ede92be2c0e4f25f5aac
BLAKE2b-256 checksum
How to use checksums
7c990b6e38c25310bc5f904f2a78f0258709b7c8984dc6a454f12ded64b78dcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Jan 17, 2025.

Transparency log

Release files / pulire-0.0.9-py3-none-any.whl

Download URL pulire-0.0.9-py3-none-any.whl
Size 12.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f998ea85f86b81ce97cf6edc1614039d4309d8b819e0e560b474845e1d6c7b73
BLAKE2b-256 checksum
How to use checksums
f4dedaf0d8de8abac3931ea4c71c0eb149ba691619f56b597c64679c961ced90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Jan 17, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.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