CSV file validation against given data schema.
Project description
csv-schema-validator
Here's how to publish your package to PyPI so everyone can install it with pip install csv-schema-validator:
1. Install build tools
pip install build twine
2. Build the package
python -m build
This creates dist/ folder with your package files.
3. Upload to PyPI
For Test PyPI first (recommended):
python -m twine upload --repository testpypi dist/*
Test with: pip install --index-url https://test.pypi.org/simple/ csv-schema-validator
For real PyPI:
python -m twine upload dist/*
4. You'll be prompted for credentials:
- Username: your PyPI username
- Password: your PyPI password (or API token)
5. After publishing, anyone can install:
pip install csv-schema-validator
Important notes:
- Version numbers: Each upload needs a new version number in
pyproject.toml - Package name: Make sure
csv-schema-validatorisn't already taken on PyPI (you might need to change the name) - Test first: Always test with Test PyPI before uploading to real PyPI
- API tokens: Consider using PyPI API tokens instead of passwords for security
Try Test PyPI first to make sure everything works!
pip install -e .
python3 -m venv .venv
source .venv/bin/activate
deactivate
Run with coverage:
pytest --cov=src/csv_schema_validator --cov-report=html
Run specific test file:
pytest tests/test_validate_csv.py
pytest src/csv_schema_validator/tests/test_validate_csv.py pytest src/csv_schema_validator/tests/test_cli.py -v
Run specific test:
pytest tests/test_validate_csv.py::TestValidateCSV::test_validate_csv_valid_file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file csv_schema_validator-0.1.1.tar.gz.
File metadata
- Download URL: csv_schema_validator-0.1.1.tar.gz
- Upload date:
- Size: 64.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84cc005391b5fb4b04ba53d75d778bbab9db3e54488a357ceb509fb3f9f442bc
|
|
| MD5 |
ea40990164b8cfc9460afa5562604824
|
|
| BLAKE2b-256 |
0a5efbc6b3711fbe7e9f59c1d900977b865e242315d4cc3e09b958f2f3efca47
|
File details
Details for the file csv_schema_validator-0.1.1-py3-none-any.whl.
File metadata
- Download URL: csv_schema_validator-0.1.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91e10b3d009e18db39c09f88e1d8ad65ec4c75539b3064967b92e61bf255f265
|
|
| MD5 |
ec3f7a98bc7fa12712dcd030fc15b778
|
|
| BLAKE2b-256 |
709c50690cd08e0b6ffdee276876fe5c6f202824d9cb7c8ed93f617d04a00cf7
|