Skip to main content

A module that validates whether the input text is a string or an integer

Project description

This module contains 2 functions for user to use. It allows the user to validate whether the input is a string or an integer. Both functions have default values for the prompt text and the error message. These can be set while calling any function from the module. These functions keep asking for the input and only finish when the input is correct. They of course return the input which can be assigned to a variable. To correctly import this module: from ValidateInput import ValidateInput Then you'll be able to access 2 functions: ValidateInput.validate_str() and ValidateInput.validate_int()

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

validateInput-0.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

validateInput-0.0.1-py3-none-any.whl (3.8 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