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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: io_file_validator-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f748cf4cbe2514f64db3c3420564a36dfd244661e15f0066acefe188bdfddf1c
MD5 46e6b05430408351959e04b33b0d0ae6
BLAKE2b-256 f3ab49a02c853955254f8d6539ce08a9531fa29b15e9cd82239972f95ca9c384

See more details on using hashes here.

File details

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

File metadata

  • Download URL: io_file_validator-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48b7e5e9c37abb4859faaf77200f730d0e3ef42d63b04050d3cfe558a7b61e99
MD5 7109f51ef74c4db2c25193e422396108
BLAKE2b-256 f24e247f3e4b1f3909d7a28416637e3feff3f00011bf4bf4c21e3e7021ee395c

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