Metadata-Version: 2.1
Name: intinput
Version: 1.3.0
Summary: A intput function that only reads intergers
Home-page: https://github.com/Sisigoks/IntInput_Module
Author: Sibi Gokul
Author-email: Sisi.goks2008@gmail.com
Description-Content-Type: text/markdown

# Intinput Function

This repository contains a Python function named `intinput` which prompts the user to input an integer value. 
If the user inputs a non-integer value, the function will display an error message and prompt the user again until a valid integer is entered.

## Parameters
- prompt (str): The message displayed to the user when asking for input.
- err (str, optional): The error message displayed when the user inputs a non-integer value. Defaults to "Invalid input, please enter an integer.".

## Installation
```
!pip install intinput
```
## Example Usage
### - Without Error Command
```
from IntInput.INIP import intinput

# Using the function with the default error message
result = intinput("Enter an integer: ")

# Use the result in your code
print("You entered the number:", result)
```
### - With Error Command
```
from IntInput.INIP import intinput

# Store the returned value in a variable
result = intinput("Please enter a number: ", "This is not a number, try again.")

# Use the result in your code
print("You entered the number:", result)
```
## License
MIT License

Copyright (c) 2024 [Sibi Gokul]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
