Multilingual library made for validation, various form fields, such as: email, cpf, cnpj, credit card, and much more.
Project description
Multiform-validator
This package provides Python functions to validate various forms fields.
Documentation: https://github.com/gabriel-logan/multiform-validator
Feel free to find bugs and report them to me. Your feedback is highly appreciated. Hugs from Gabriel Logan!
If you want to help me, you can buy me a coffee (:
Installation
pip install multiform-validator
Data Validator
This package contains various modules for validating different types of data. Below are the available validation modules:
Avaliable for while
- cnpjValidator: CNPJ validation.
- cpfValidator: CPF validation.
- getOnlyEmail: Extracts only the email or emails address from a string.
- identifyFlagCard: Identifies the flag of a credit card.
- isCreditCardValid: Credit card validation.
- isEmail: Email address validation format.
- passwordStrengthTester: Password strength test.
- validateBRPhoneNumber: Brazilian phone number validation.
from multiform_validator import (
cnpjIsValid,
cpfIsValid,
getOnlyEmail,
identifyFlagCard,
isCreditCardValid,
isEmail,
passwordStrengthTester,
validateBRPhoneNumber
)
Looking for contributions.
Available Validation Modules !!! STILL NOT AVALIABLE !!!
- isAscii: Checks if the string contains only ASCII characters.
- isBase64: Checks if the string is a valid Base64 encoding.
- isCEP: CEP validation (Brazilian postal code).
- isDate: Date format validation.
- isDecimal: Checks if the number is a decimal.
- isEmpty: Checks if the string is empty.
- isMACAddress: MAC address validation.
- isMD5: Checks if the string is a valid MD5 hash.
- validatePassportNumber: Passport number validation.
- isPort: Port number validation.
- isPostalCode: Postal code validation.
- isTime: Time format validation.
- validateEmail: Email address full validation.
- validatePassword: Password validation.
- validatePhoneNumber: Phone number validation.
- validateUsername: Username validation.
- validateUSPhoneNumber: US phone number validation.
- isNumber: Checks if the value is a number.
- validateName: Name validation.
- validateSurname: Surname validation.
- validateTextarea: Textarea validation.
For better information, read the documentation
Feel free to explore the various functions and experiment with different inputs to understand their behavior. If you encounter any issues or have suggestions, don't hesitate to reach out to me. Your feedback is valuable and helps improve the package. Happy coding!
By - Gabriel Logan
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file multiform_validator-0.0.7.tar.gz
.
File metadata
- Download URL: multiform_validator-0.0.7.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fb07453ed05ca49f1c37ba7f3d34edfac39d4b4e06106974dd556185a277014 |
|
MD5 | cbb670bc959aea905f98f7f709611309 |
|
BLAKE2b-256 | 0dcf552fdca34b4eba60c2a4702e6143a7c0f4720769d0612175ec02219f6a09 |
File details
Details for the file multiform_validator-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: multiform_validator-0.0.7-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50035ad1f24f662a8995ef090a848d55e6fd4af6be9f4856b12792f38c472f97 |
|
MD5 | 5462f797ac5c2511f0578cdb1dc0097a |
|
BLAKE2b-256 | 1a487591861d1798e5671f797e3c060648367a5ad89a4c144c045dd7b9ac8374 |