Skip to main content

File Validator Tool helps you validate your data with a plethora of formats

Project description

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!

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

io_file_validator-0.1.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

io_file_validator-0.1.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file io_file_validator-0.1.5.tar.gz.

File metadata

  • Download URL: io_file_validator-0.1.5.tar.gz
  • Upload date:
  • Size: 3.4 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

Hashes for io_file_validator-0.1.5.tar.gz
Algorithm Hash digest
SHA256 b7b7fddaf73fc24146627f37de6505d538c59ef264afd61922a0009bb7dfdc26
MD5 a90a2d6b09131ee4b1f0f1fc6465b8ed
BLAKE2b-256 4d652d08aa4f05afbd2ef5567a99cdd8f58ac50342da1106ef4fa3f486cc798b

See more details on using hashes here.

File details

Details for the file io_file_validator-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: io_file_validator-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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

Hashes for io_file_validator-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a202802b995d0d59059619b08fb42bd6603fea42bbb734465eb0423ccf9ebcf6
MD5 2fd3e71d2ad53349b04ee1501354794b
BLAKE2b-256 e601595c04b35646d7f2e6790198c83c970efb35dd5d6470b3fcd3e1fa981319

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page