File Validator Tool helps you validate your data with a plethora of formats
Project description
Welcome to IO Bytes File Validator!
Data Validator is your go-to tool for clean data ingestion and validation, seamlessly integrating IO Byte Files and validation tools like Panderas to make your data processing tasks a breeze.
Features
- Easy Data Ingestion: Select your file format (CSV or JSON) and provide a URL to a Panderas schema.
- Streamlined Validation: With just a few clicks, submit your selections and validate your data effortlessly.
io-file-validator
Installation instructions
pip install io-file-validator
Usage instructions
Step 1: Select File Format
Choose the file format you want to ingest. Whether it's CSV or JSON, io-file-validator has got you covered.
Step 2: Provide Panderas Schema URL
Enter the URL to the Panderas schema you want to use for validation. Don't worry, we support various schema sources to suit your needs.
Sample code:
from file_validator.validator import ValidatorDataframe
validator = ValidatorDataframe(
url="https://raw.githubusercontent.com/resilientinfrastructure/standards/main/panderas_schema.yml",
file_format="csv",
)
parent_path = Path(__file__).parent
sample_file_path = parent_path.resolve() / "data" / "sample_prices.csv"
with open(sample_file_path, "rb") as sample_file:
file_contents = sample_file.read()
sample_file_bytesio = BytesIO(file_contents)
yaml_content = validator.get_yaml_content(validator.url)
validated_df = validator.load_and_validate_file(my_upload=sample_file_bytesio, yaml_content=yaml_content)
Run Tests
To ensure everything is functioning smoothly, run the tests using the following commands:
Run the App
Ready to see io-file-validator in action? Simply run the following command:
Contributions
We welcome contributions from the community! If you have any ideas, bug fixes, or enhancements, feel free to submit a pull request.
Feedback
We'd love to hear your feedback! Whether you have suggestions for improvement or just want to share your experience using io-file-validator, don't hesitate to reach out.
Happy data ingesting with io-file-validator!
Feel free to customize it further to better suit your project's tone and style!
Project details
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
File details
Details for the file io_file_validator-0.1.3.tar.gz
.
File metadata
- Download URL: io_file_validator-0.1.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa514fbaa942c26121cdda76539fb48793641e44d81adc92cf4d77d18ddb21e4 |
|
MD5 | 3ccbf9b717ad667a3e9ba1bb147a815b |
|
BLAKE2b-256 | 5eda9acf8583a80e9578f542258171b1383dbda052f3972f134f0711e9903cad |
File details
Details for the file io_file_validator-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: io_file_validator-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c5e7900368f8eff9b1bb1200969f3784449a8562933e0f1cdf8d8ed4e35f94c |
|
MD5 | bae393b21c0ffa541b3038896898d089 |
|
BLAKE2b-256 | 6263c71176dba0c46ddb1c63f8326d7b9a2bd50289920a6b30db9a8e4d51252c |