Package that help you to fix general python input() problems
Project description
PySimpleInput || v0.0.3 (The Minor Update)
Hi! Let me introduce PySimpleInput Library This library help you to fix problems with Python Input Built-in Function This library still on development progress. if you found a bugs, report it to me with Github Issues at PySimpeInput Github Issues
Installation
You can install PySimpleInput with pip or using .whl or manually with .tar.gz
Using PIP
pip3 install --upgrade PySimpleInput
Using wheel
- First, you need to get the wheel file from PyPi or Github
- And, you can install it
pip3 install (PySimpleInput Wheel File).whl
Using .tar.gz
- Same as using wheel, you need to get the .tar.gz file from PyPi or Github
- Extract the .tar.gz file using
tar -xvf (PySimpleInput TAR GZ File).tar.gz
- Cd into PySimpleInput directory :
cd PySimpleInput-(VERSION)/
- Then you can install it :
python3 setup.py install
Docs
First of all, you need to initiate the PySimpleInput class to variable `import PySimpleInput
PySim = PySimpleInput.PySimpleInput() `
Know what is .input(...) Method
PySim.input(..)
Like Python, you can give a question to the user throught this function input() Required/Optional Arguments:
arg1 (STRING) This argument will send a question to the user (REQUIRED)
arg2 (STRING) This argument will convert the user input datatypes (OPTIONAL)(NEED FLAG 3 ACTIVATED)
arg3 (INTEGER) This argument will activate a flags:
List of flags (options/settings) that can be activated:
1 -> Remove all whitespace in the user input
ex. Joe Gregor Van Dones
-> JoeGregorVanDones
2 -> Prevent user pressing enter while the input field is empty
This options will preventing user to corrupt your input
3 -> Allow you to convert the datatype of user input (From String to Intor Float)
This options will convert result datatypes (This options need argument num 2 filled with this Flag 3 Code
Flag 3 code: "str" -> convert user input to str
++ CAUTION
-- This method (MAYBE) will nees you to prevent the user entering alphabet characters that can be destroy PySimpleInput system / Use flags 4
"int" -> convert user input to int
"float" -> convert user input to float
4 -> Remove all alphabet charactets from user input
5 -> Convert user input from lower -> upper 6 -> Convert user input from upper -> lower
7 -> Yes/No input (EXPERIMENTAL)
8 -> Redirect user input to a file (EXPERIMENTAL)
9 -> the opposite of flags 4 [COMING SOON]
10 -> E-Mail input support [COMING SOON]
You can also use multiple flags, like this
`userinp = PySim.input("What is your name?", None, 1, 2, 5)
The result is
`the user inputted: Joe McCallison because flag 1 and 5 activated, it will be like this: JOEMCCALLISON`
Contribution
I Appreciate you for contributing on this modules
How To Contribute
You can Contribute by forking this repo and start adding more features, optimizing code and fixing bugs Then you can make a pull request to this repo and wait your pull request merged
You can also contribute by giving a star to this repo 👍
Changelog
--> Changelog started at version 0.0.3.5
- Add Flags 7, 8
- Add Docs to README.md
- Remove wiki.py and PySimpleInput.wiki function (Moved to README.md)
- Fix README.md | version not changed
About
This project was made 100% by Me (Turtleion) This project was licensed by MIT License Visit my GitHub https://github.com/turtleion
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
Built Distribution
Hashes for PySimpleInput-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01b19281dc26308e8c80170e5d4fef49a7ad430195483821287556cb80716c0 |
|
MD5 | d6a184ddab8d9d2f4ba06c5f7990c5f8 |
|
BLAKE2b-256 | 2d09637433dcf2b2b4c7a6a4c272a0a33f946f2e0ebb2e809e81498680218212 |