Skip to main content

Welcome to IO Bytes File Validator!

Test

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!

Metadata

Release files for io_file_validator 0.1.5

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

Source distribution (sdist)

Source distribution for io_file_validator 0.1.5
File Size Uploaded
io_file_validator-0.1.5.tar.gz 3.4 kB Details

Built distribution (wheel)

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

Total release size: 7.1 kB

Release files / io_file_validator-0.1.5.tar.gz

Download URL io_file_validator-0.1.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b7b7fddaf73fc24146627f37de6505d538c59ef264afd61922a0009bb7dfdc26
BLAKE2b-256 checksum
How to use checksums
4d652d08aa4f05afbd2ef5567a99cdd8f58ac50342da1106ef4fa3f486cc798b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure

Release files / io_file_validator-0.1.5-py3-none-any.whl

Download URL io_file_validator-0.1.5-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a202802b995d0d59059619b08fb42bd6603fea42bbb734465eb0423ccf9ebcf6
BLAKE2b-256 checksum
How to use checksums
e601595c04b35646d7f2e6790198c83c970efb35dd5d6470b3fcd3e1fa981319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1021-azure

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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