Skip to main content

A simple data validator for phone numbers, dates, and URLs.

Project description

Data Validator Overview Data Validator is a Python package that provides validation utilities for personal data such as dates, URLs, emails and other structured inputs. It ensures that input data conforms to expected formats and prevents invalid data from being processed. Features Date Validation: Supports multiple formats (YYYY-MM-DD, DD-MM-YYYY, MM-DD-YYYY) URL Validation: Ensures URLs follow standard format Expandable: Easily extendable for other data validation needs Installation You can install the package via pip: pip install datavalidator

Usage Import and use the validators in your Python project: from personal_data_validator.validator import DateValidator, URLValidator

Validate Date

date_validator = DateValidator("2024-03-11") print(date_validator.validate()) # Output: "Valid date"

Validate URL

url_validator = URLValidator("https://example.com") print(url_validator.validate()) # Output: "Valid URL"

Running Tests To run the test suite, use pytest: pytest

Contributing Contributions are welcome! To contribute: Fork the repository. Create a new branch (feature-branch). Make your changes and commit them. Push to your fork and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License This project is licensed under the MIT License.

Author Baliqees Oladunjoye For inquiries, contact: baliqees.oladunjoye@gmail.com

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

data_validator_baliqees-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

data_validator_baliqees-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file data_validator_baliqees-0.1.0.tar.gz.

File metadata

  • Download URL: data_validator_baliqees-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for data_validator_baliqees-0.1.0.tar.gz
Algorithm Hash digest
SHA256 15f0413e81b3174289e09e22aab3ef6881b2e7939d992ffe15414d14b91a1358
MD5 17139f3c97d843a57c222de9b7895206
BLAKE2b-256 9d18fcfc101e142fce6af4f421f6885f91e63031e11783d035039e8926e57ea7

See more details on using hashes here.

File details

Details for the file data_validator_baliqees-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for data_validator_baliqees-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70356520a651e3059aab353335a9882ef920efe7c415ed474dcc8341abee681b
MD5 af0387ee9c11f56aeec63c520f9a480e
BLAKE2b-256 f7f250f2f514b91ef9d8522b289f5c04a9f219dc49f24026956f00087d52b1cb

See more details on using hashes here.

Supported by

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