Skip to main content

Console input validator for python, allows for any condition to be checked in a clean and consice syntax

Project description

# validin Console input validator for python, allows for any condition to be checked in a clean and consice syntax

## Docs (temporary): ` from validin import get_input import validin.validators as valid `

Use get_input to get valid user input

Example get_input() use: - name = get_input(“What’s your name? “, valid.IsLetters()) - age = get_input(“How old are you? “, valid.IsNaturalNumGreaterThan(18))

Input Validators: - IsNaturalNum - IsNaturalNumLessThan - IsLetters - IsLettersAndSymbols - IsAlphanumeric - IsAlphanumericAndSymbols - IsOption

To create a new validator,

create a NewValidator() class with the condition and invalid input message wanted.

For a validator with more advanced functionality (such as dynamic invalid input messages),

create an InputValidator subclass (see the docs)

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

validin-0.9.3.tar.gz (14.1 kB view hashes)

Uploaded Source

Built Distribution

validin-0.9.3-py3-none-any.whl (14.0 kB view hashes)

Uploaded Python 3

Supported by

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