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.4.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

io_file_validator-0.1.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: io_file_validator-0.1.4.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

Hashes for io_file_validator-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f35164795bee534b8958de427cc4490b10e008734ea7657e595da46cd85a99fd
MD5 bb338250143aeb7707beb4417627901a
BLAKE2b-256 572a154bd4c89d87c91b5bfdbbc9de1cfa97d8bf535d1a350076d79475a9ee10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: io_file_validator-0.1.4-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

Hashes for io_file_validator-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 23bdcb27e7f818c4e83e8139ed89aa8038b49f57312066813eee5d8e837ff9c6
MD5 38d7882d7b8665ce0f8e9cc536363464
BLAKE2b-256 9c35ea2b717c81abb8bccc1a553703722e02853bf829d044d19e0ca20723d528

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