Skip to main content

ValidateLite

ValidateLite is a lightweight, zero-config Python CLI tool for validating data quality across files and SQL databases - built for modern data pipelines and CI/CD automation. This python data validation tool is a flexible, extensible command-line tool for automated data quality validation, profiling, and rule-based checks across diverse data sources. Designed for data engineers, analysts, and developers to ensure data reliability and compliance in modern data pipelines.

Python 3.8+ License: MIT Code Coverage


📝 Development Blog

Follow the journey of building ValidateLite through our development blog posts:


🚀 Quick Start

For Regular Users

Option 1: Install from PyPI (Recommended)

pip install validatelite
vlite --help

Option 2: Install from pre-built package

# Download the latest release from GitHub
pip install validatelite-0.1.0-py3-none-any.whl
vlite --help

Option 3: Run from source

git clone https://github.com/litedatum/validatelite.git
cd validatelite
pip install -r requirements.txt
python cli_main.py --help

Option 4: Install with pip-tools (for development)

git clone https://github.com/litedatum/validatelite.git
cd validatelite
pip install pip-tools
pip-compile requirements.in
pip install -r requirements.txt
python cli_main.py --help

For Developers & Contributors

If you want to contribute to the project or need the latest development version:

git clone https://github.com/litedatum/validatelite.git
cd validatelite

# Install dependencies (choose one approach)
# Option 1: Install from pinned requirements
pip install -r requirements.txt
pip install -r requirements-dev.txt

# Option 2: Use pip-tools for development
pip install pip-tools
python scripts/update_requirements.py
pip install -r requirements.txt
pip install -r requirements-dev.txt

# Install pre-commit hooks
pre-commit install

See DEVELOPMENT_SETUP.md for detailed development setup instructions.


✨ Features

  • 🔧 Rule-based Data Quality Engine: Supports completeness, uniqueness, validity, and custom rules
  • 🖥️ Extensible CLI: Easily integrate with CI/CD and automation workflows
  • 🗄️ Multi-Source Support: Validate data from files (CSV, Excel) and databases (MySQL, PostgreSQL, SQLite)
  • ⚙️ Configurable & Modular: Flexible configuration via TOML and environment variables
  • 🛡️ Comprehensive Error Handling: Robust exception and error classification system
  • 🧪 Tested & Reliable: High code coverage, modular tests, and pre-commit hooks
  • 📐 Schema Drift Prevention: Lightweight schema validation that prevents data pipeline failures from unexpected schema changes - a simple alternative to complex validation frameworks

📖 Documentation

  • USAGE.md - Complete user guide with examples and best practices
  • Schema command JSON output contract: docs/schemas/schema_results.schema.json
  • DEVELOPMENT_SETUP.md - Development environment setup and contribution guidelines
  • CONFIG_REFERENCE.md - Configuration file reference
  • ROADMAP.md - Development roadmap and future plans
  • CHANGELOG.md - Release history and changes

🎯 Basic Usage

Validate a CSV file

vlite check data.csv --rule "not_null(id)" --rule "unique(email)"

Validate a database table

vlite check "mysql://user:pass@host:3306/db.table" --rules validation_rules.json

Check with verbose output

vlite check data.csv --rules rules.json --verbose

Validate against a schema file (single table)

# Table is derived from the data-source URL, the schema file is single-table in v1
vlite schema "mysql://user:pass@host:3306/sales.users" --rules schema.json

# Get aggregated JSON with column-level details (see docs/schemas/schema_results.schema.json)
vlite schema "mysql://.../sales.users" --rules schema.json --output json

For detailed usage examples and advanced features, see USAGE.md.


🏗️ Project Structure

validatelite/
├── cli/           # CLI logic and commands
├── core/          # Rule engine and core validation logic
├── shared/        # Common utilities, enums, exceptions, and schemas
├── config/        # Example and template configuration files
├── tests/         # Unit, integration, and E2E tests
├── scripts/       # Utility scripts
├── docs/          # Documentation
└── examples/      # Usage examples and sample data

🧪 Testing

For Regular Users

The project includes comprehensive tests to ensure reliability. If you encounter issues, please check the troubleshooting section in the usage guide.

For Developers

# Set up test databases (requires Docker)
./scripts/setup_test_databases.sh start

# Run all tests with coverage
pytest -vv --cov

# Run specific test categories
pytest tests/unit/ -v          # Unit tests only
pytest tests/integration/ -v   # Integration tests
pytest tests/e2e/ -v           # End-to-end tests

# Code quality checks
pre-commit run --all-files

# Stop test databases when done
./scripts/setup_test_databases.sh stop

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines and Code of Conduct.

Development Setup

For detailed development setup instructions, see DEVELOPMENT_SETUP.md.


❓ FAQ: Why ValidateLite?

Q: What is ValidateLite, in one sentence?

A: ValidateLite is a lightweight, zero-config Python CLI tool for data quality validation, profiling, and rule-based checks across CSV files and SQL databases.

Q: How is it different from other tools like Great Expectations or Pandera?

A: Unlike heavyweight frameworks, ValidateLite is built for simplicity and speed — no code generation, no DSLs, just one command to validate your data in pipelines or ad hoc scripts.

Q: What kind of data sources are supported?

A: Currently supports CSV, Excel, and SQL databases (MySQL, PostgreSQL, SQLite) with planned support for more cloud and file-based sources.

Q: Who should use this?

A: Data engineers, analysts, and Python developers who want to integrate fast, automated data quality checks into ETL jobs, CI/CD pipelines, or local workflows.

Q: Does it require writing Python code?

A: Not at all. You can specify rules inline in the command line or via a simple JSON config file — no coding needed.

Q: Is ValidateLite open-source?

A: Yes! It’s licensed under MIT and available on GitHub — stars and contributions are welcome!

Q: How can I use it in CI/CD?

A: Just install via pip and add a vlite check ... step in your data pipeline or GitHub Action. It returns exit codes you can use for gating deployments.


🔒 Security

For security issues, please review SECURITY.md and follow the recommended process.


📄 License

This project is licensed under the terms of the MIT License.


🙏 Acknowledgements

  • Inspired by best practices in data engineering and open-source data quality tools
  • Thanks to all contributors and users for their feedback and support

Metadata

Release files for validatelite 0.4.0

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

Source distribution (sdist)

Source distribution for validatelite 0.4.0
File Size Uploaded Provenance Actions
validatelite-0.4.0.tar.gz 277.8 kB Without provenance Details for validatelite-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 436.3 kB

Release files / validatelite-0.4.0.tar.gz

Download URL validatelite-0.4.0.tar.gz
Size 277.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4a1c4325a1b1a521571a4e73834c2837b7e377e13bc4c70ca7aca5fc123c858c
BLAKE2b-256 checksum
How to use checksums
db7749cefa3c5782fdb1b82d3cfb077fd5ed18e04d63869aa7f587b39150bc8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / validatelite-0.4.0-py3-none-any.whl

Download URL validatelite-0.4.0-py3-none-any.whl
Size 158.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ee2ad94785998a1b95215210e6324fee17fe5f16a70a26cd196b760dc5d3418
BLAKE2b-256 checksum
How to use checksums
11521439f8777149c5c2bf2fa8b474a7ff3d754e23b152dfe360cfe7f924f3c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.11.13

Security for validatelite 0.4.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.

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