python data quality kit
pydqkit is a lightweight, developer-first Python toolkit for data quality profiling, data validation, sanity check and interactive HTML visualization.
It helps data engineers and analysts quickly understand the structure, completeness, and patterns of tabular datasets, without requiring any external platforms or services.
Features
- Column-level data profiling
- Null and non-null statistics
- Distinct and duplicate counts
- Length analysis (minimum, maximum, average)
- Pattern discovery for string, datetime, and boolean columns
- Type inference (numeric, string, boolean, datetime)
- Interactive, self-contained HTML profiling reports
- Designed for exploratory analysis and debugging workflows
Installation
pip install pydqkit
Quick Start
import pandas as pd
from pydqkit.profiling import profile_dataframe
from pydqkit.viz import profile_to_html
df = pd.DataFrame({
"id": ["AB123456", "CD654321", None, "EF000001"],
"age": [25, 30, None, 40],
"score": [88.5, 92.0, 79.5, 85.0],
"date": ["2025-01-01", "2025-01-02", None, "2025-01-04"],
"flag": [True, True, False, True],
})
profile = profile_dataframe(df, dataset_name="demo")
html = profile_to_html(profile)
with open("profile_report.html", "w", encoding="utf-8") as f:
f.write(html)
Open profile_report.html in your browser to explore the interactive profiling report.
What the Profiling Report Shows
For each column, the report includes:
Completeness
- Proportion of non-null and null values (visual bar and percentages)
Value Statistics
- Distinct count and duplicate count
Type Information
- Inferred profile type and suggested logical type
Length Metrics
- Minimum length (reported as 0 if missing values exist)
- Maximum and average length
Pattern Summary
- Common structural patterns inferred from values
Top Values
- Most frequent values with counts and percentages
The report is designed to be readable at a glance while still exposing enough detail for debugging and validation.
Design Philosophy
pydqkit is intentionally:
Developer-first
Optimized for notebooks, scripts, and local inspection.
Platform-independent
No cloud services, no accounts, no metadata dependencies.
Explainable
Metrics and visual elements are designed to be interpretable rather than opaque.
The project follows conventions commonly used in enterprise data quality tools, but is implemented as a standalone Python library.
License
This project is released under the MIT License.
See the LICENSE file for details.
The author reserves the right to relicense future versions.
Disclaimer
This project is an independent open-source toolkit and is not affiliated with, endorsed by, or associated with Informatica or any other commercial data quality platform.
Contributing
Contributions are welcome.
By submitting a pull request, you agree that your contributions will be licensed under the same license as this project.
See CONTRIBUTING.md for details.
Roadmap (Tentative)
- Rule-based data quality checks
- Column-level and cell-level validation
- Support for multiple rule definitions:
- Regular expressions
- SQL-based rules
- Plain-language rule specifications
- Data engineering quality checks (schema, type, and pipeline sanity)
- Machine learning data sanity checks (distribution drift, outliers)
- Column comparison across datasets
- Cell level data quality check
- Export profiling reports to multiple formats (HTML, PDF, Excel)
- Configurable thresholds and validation summaries
Author
Niki Zheng, Luqun Li
Metadata
Release files for pydqkit 1.0.0
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 |
|---|---|---|---|---|
| pydqkit-1.0.0.tar.gz | 40.7 kB | Without provenance | Details for pydqkit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydqkit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pydqkit-1.0.0-py3-none-any.whl |
Total release size: 66.6 kB
Release files / pydqkit-1.0.0.tar.gz
| Download URL | pydqkit-1.0.0.tar.gz |
|---|---|
| Size | 40.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a2d840ca91be1385c6b8f241bc4a33f477ec4b0e0181aefd16f28ce9a0eb806
|
|
BLAKE2b-256 checksum How to use checksums |
cb07d82d7eb8c90d674fe535d02562462cb4b7bd7ccd605608f3c7fbaf362cc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / pydqkit-1.0.0-py3-none-any.whl
| Download URL | pydqkit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d5b330ea59b3694d96fb09e67e7e7017565a2c4cd505fbad65df5ba41eaedd1
|
|
BLAKE2b-256 checksum How to use checksums |
4ae0423b72073c51da92e989b8123d062eb8b60ba10b03d988c388cad094c147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Security for pydqkit 1.0.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.