Skip to main content

No project description provided

Project description

Validataurus

Validataurus is a powerful and flexible Python package designed to validate various types of data easily and efficiently. Whether you're building web applications, handling user input, or working with data pipelines, Validataurus ensures your data is clean, secure, and properly formatted.


Features

  • Email Validation: Verify the format and domain of email addresses.
  • Password Security: Assess password strength with customizable security rules.
  • Phone Numbers: Validate phone numbers for proper formatting and potential regions.
  • Birth Dates: Ensure valid and realistic dates of birth.
  • Credit Card Validation: Check the format and validity of credit card numbers.

Installation

You can install Validataurus using pip:

pip install validataurus

Usage

TODO: Add usage examples

Testing

Make sure the project is installed before running the tests:

make tests

User Stories

User Story 1: Email Validation

As a user, I want to verify if an email address is valid so that I can ensure it can be used for registrations or communications.

Acceptance Criteria: • Valid Format: The email address must follow the standard format (e.g., user@example.com). • Valid Domains: Domains must include a domain name and an extension (e.g., .com, .org). • Invalid Values: • An empty string or one without @ should be considered invalid. • Emails without a domain extension should be rejected.

User Story 2: Password Strength

As a user, I want to verify if a password meets security criteria to ensure my personal information is protected.

Acceptance Criteria: • Minimum Length: The password must be at least 8 characters long. • Complexity Requirements: • At least one uppercase letter. • At least one lowercase letter. • At least one digit. • At least one special character (e.g., @, !, %). • Weak Password: A password failing any of the above criteria is considered weak.

User Story 3: Phone Number Validation

As a user, I want to verify if a phone number is valid and correctly formatted to ensure it can be used for calls or SMS.

Acceptance Criteria: • International Format: The number must include a country code (e.g., +1, +33). • Regional Validity: The number must follow the specific rules of the associated region. • Invalid Values: • Empty strings or numbers without a country code should be rejected. • Numbers containing letters or non-numeric symbols should be rejected.

User Story 4: Birth Date Validation

As a user, I want to verify if a birth date is valid to ensure it is realistic and can be used in forms or identification systems.

Acceptance Criteria: • Valid Format: The date must be in the DD-MM-YYYY format. • Realistic Date: The birth date cannot be in the future. • Invalid Dates: • An empty string or a date in the wrong format (e.g., DD/MM/YYYY, YYYY-MM-DD) should be rejected. • Impossible dates (e.g., 2023-02-30) should be rejected.

User Story 5: Credit Card Validation

As a user, I want to verify if a credit card number is valid to ensure it can be used for transactions.

Acceptance Criteria: • Valid Format: The number must have between 13 and 19 digits, either with or without spaces between groups of 4 digits. • Validity: The number must pass the Luhn algorithm test. • Invalid Values: • Strings containing non-numeric characters should be rejected. • Card numbers failing the Luhn test should be rejected.

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

validataurus-0.1.5.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

validataurus-0.1.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: validataurus-0.1.5.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for validataurus-0.1.5.tar.gz
Algorithm Hash digest
SHA256 bce18574ba6d7978e3429edcde72a954be01d11c1ff8c19ebe20eda0521e3819
MD5 c69bfa198e28b4b2f9e813d8a72f83e6
BLAKE2b-256 9e7253fe72dd935252b22c0818213fb3a0c9057b991a2d227d634f5bcbefa4ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: validataurus-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.11

File hashes

Hashes for validataurus-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1be9e0cfdefbc74225b5bc12a6c5ecd64e500aa6574a384948cfd47b6a4ebf2b
MD5 45a737a1a349ff458e9f69cdf6907891
BLAKE2b-256 b838ae710e6667b000e9c34fae3ddd506e91852c8c5a173474d3dbc41055277e

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