Skip to main content

A simple datavalidator for validating email, phone numbers, dates, and URLs.

Project description

datacheckerpro

Overview

datacheckerpro is a Python package designed to efficiently validate various types of personal data, including:

  • Email addresses
  • Phone numbers
  • Dates
  • URLs

This package follows Object-Oriented Programming (OOP) principles, ensuring modularity, reusability, and easy integration into different projects.


Installation

Install the package using:

pip install datacheckerpro


---

## **Usage**

### **1️⃣ Import the Validator Class**
```python
from datacheckerpro.validator import DATAVALIDATOR

2️⃣ Validate an Email

data = "example@email.com"
validator = DATAVALIDATOR(data)
print(validator.validate_email())  # Output: True

3️⃣ Validate a Phone Number

data = "+1-832-005-3034"
validator = DATAVALIDATOR(data)
print(validator.validate_phone()) # Output: True
To check if a number if froma particular contitnent , you can do this

data = "+234901245890"
validator = DATAVALIDATOR(data)
print(validator.african_numbers()) #output :True
repeat for other continents by simply calling the method continentname_numbers()

4️⃣ Validate a Date

data = "2024-02-1123"
validator = DATAVALIDATOR(data)
print(validator.validate_date())  # Output: True

5️⃣ Validate a URL

data = "https://google.com"
validator = DATAVALIDATOR(data)
print(validator.validate_url())  # Output: True

Running Tests

The package includes unit tests to ensure proper functionality. Run tests using:

pytest-v

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a feature branch:
    git checkout -b featurebranch
    
  3. Commit your changes:
    git commit -m "Added new feature"
    
  4. Push to the branch:
    git push origin featurebranch
    
  5. Open a Pull Request

License

This project is licensed under the MIT License.


Author

👤 OKOLI OGECHUKWU ABIMBOLA 📧 Email: okoliogechi74@gmail.com

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datacheckerpro-0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

datacheckerpro-0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file datacheckerpro-0.1.tar.gz.

File metadata

  • Download URL: datacheckerpro-0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for datacheckerpro-0.1.tar.gz
Algorithm Hash digest
SHA256 00e5bf8139ac6e929ffa5a25c5ba77040bb543192aaf303964d4516be9022d90
MD5 431d4daa228e6d146578c7acc831cbcc
BLAKE2b-256 1f074d66068add79b6cad750d63eb991d390aed6c309bc1ece15a44b2437b1af

See more details on using hashes here.

File details

Details for the file datacheckerpro-0.1-py3-none-any.whl.

File metadata

  • Download URL: datacheckerpro-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for datacheckerpro-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20e671d40b7bc533c43251dd27713aa046f8f28bdca40e118ad7a3b4eec9c129
MD5 17b6adb71891ec0f30edb3961e2e90c8
BLAKE2b-256 3228ba325b7dad2cbc83d2f80b1b0038b09e0b87d3af3843d6dc0aeaa3a86072

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