🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ValidateInput

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ValidateInput

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

0.0.1
PyPI
Maintainers
1

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()

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts