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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pulire-0.0.9.tar.gz | 5.9 kB | With provenance | Details for pulire-0.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pulire-0.0.9-py3-none-any.whl | Python 3 | none | any | Details for pulire-0.0.9-py3-none-any.whl |
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 logRelease 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 logSecurity for pulire 0.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pulire-0.0.9.tar.gz
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 logA 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.