A simple validation library
Project description
validpy
It is a library that makes validation checks in python
Installation
> pip install validpy
Usage
import validpy
validator = validpy.Validator()
# Checking user input
user_input = input("Choose an option (1, 2, 3, 4): ")
valid_choices = ["1", "2", "3", "4"];
if validator.isInput(user_input, valid_choices):
print("Correct")
# Checking numbers or strings
number = 3
if validator.isInt(number):
if validator.isEven(number):
print("Even number)
print("Odd number")
else:
print("Thats not a number")
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
validpy-0.0.3.tar.gz
(1.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file validpy-0.0.3.tar.gz.
File metadata
- Download URL: validpy-0.0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2597f1f010ed2ba7b3014c49ab1bf5dad329d613e521747ce207db063d3d98c0
|
|
| MD5 |
bf30292ee230215f7ef73afa7a14748f
|
|
| BLAKE2b-256 |
d5631d9559fcd5a71c300eb59711fd928d7a850eaca4939f1c1c07e74736a568
|
File details
Details for the file validpy-0.0.3-py3-none-any.whl.
File metadata
- Download URL: validpy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53ed6c7c7022f3c49fcdf0d91fbf08dba2c9d64ff42a38b9ec284875038ea6a6
|
|
| MD5 |
e9a4e48ce780cf9d6cdcd43ca950984a
|
|
| BLAKE2b-256 |
e17a4e373972807231eaadf13e8fc6ec24105028a64061bc359ed95c4a032b21
|