Skip to main content

Gives option to input numbers easier

Project description

ninput

gives options to input integers and floats easier in version 0.3.0 added time sleeping in error case

functions

int_input and float_input could be used for getting int or float from user without problems with converting or exceptions. Functions check type of input and if it`s not expected ones there gives message and try to again get number from user until he enter valid data.

le_int_input and le_float_input is int and float input but user have to enter number that is less or equal than number that programmer give in argument if user type greater one function will ask again until he enter less or equal to expected number.

lt_int_input and lt_float_input is int and float input but user have to enter number that is less than number that programmer give in argument if user type greater or equal one function will ask again until he enter less to expected number.

ge_int_input and ge_float_input is int and float input but user have to enter number that is great or equal than number that programmer give in argument if other case program will ask again until user enter great or equal number.

gt_int_input and gt_float_input is int and float input but user have to enter number that is great than number that programmer give in argument if other case program will ask again until user enter great number.

be_int_input and be_float_input is int and float input but user have to enter number that is between or equal than number that programmer give in argument

bt_int_input and bt_float_input is int and float input but user have to enter number that is between than number that programmer give in argument

bet_int_input and bet_float_input is int and float input but user have to enter number that is great or equal than first number and lower than second number that programmer gives in argument

bte_int_input and bte_float_input is is int and float input but user have to enter number that is great than first number and lower or equal than second number that programmer gives in argument

ne_int_input and ne_float_input is int and float input but user have to enter number that is not equal to number that programmer gives in argument

positive_int_input and positive_float_input is is int and float input but user have to enter positive number

negative_int_input and negative_float_input is is int and float input but user have to enter positive number

Params

:param than: numbers that input number must be less, great, between or not equal. In not equal param named to. In between case you should give tuple or list. Doesn`t exist in int_input, float_input, positive_int_input, positive_float_input, negative_int_input and negative_float_input

:param text: text that shows on input. default ''

:param error_text: text that show in case if equation is False and error_text_bool is True; In int_input, float_input is the same to error_text_input

:param error_text_format_bool: if True shows formated error text; Doesn`t exist in int_input, float_input

:param error_text_format: formated error text; Doesn`t exist in int_input, float_input

:param pause:if set True pause program until Enter is pressed default True; in int_input, float_input is the same to error_text_input

:param pause_text_bool:if True shows text in pause; in int_input, float_input is the same to error_text_input

:param pause_text:What shows on pause; in int_input, float_input is the same to error_text_input

:param clear: if True clear console; in int_input, float_input is the same to error_text_input

:param error_text_input:text that shows on error case -> if cant convert into int; Doesn`t exist in int_input, float_input

:param pause_input:same as pause but in inputing; Doesn`t exist in int_input, float_input

:param pause_input_text_bool:same as pause_text_bool but in inputing; Doesn`t exist in int_input, float_input

:param pause_input_text:same as pause_text but in inputing; Doesn`t exist in int_input, float_input

:param clear_input:same as clear but in inputing; Doesn`t exist in int_input, float_input

:param error_text_bool: if true shows error text if equation isnt true; in int_input, float_input is the same to error_text_input

:param error_text_input_bool: same as error_text_bool but in inputing; Doesn`t exist in int_input, float_input

:param sleep_format_text: formatted sleep text

:param sleep_text: sleep text

:param sleep_format_text_bool: if set True that show sleep_format_text else show sleep text

:param sleep_time: time to sleep

:param sleep_text_bool: if set True show text on sleeping

:param sleep_bool: if True sleep program for a sleep_time

:param sleep_format_text_input: formatted sleep text

:param sleep_text_input: sleep text

:param sleep_format_text_bool_input: if set True that show sleep_format_text else show sleep text

:param sleep_time_input: time to sleep

:param sleep_text_bool_input: if set True show text on sleeping

:param sleep_bool_input: if True sleep program for a sleep_time

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

ninput-0.3.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ninput-0.3.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file ninput-0.3.1.tar.gz.

File metadata

  • Download URL: ninput-0.3.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ninput-0.3.1.tar.gz
Algorithm Hash digest
SHA256 22752c9354b7c8fc3eb0e7c8090f9fdbd82113a96ab7009efb06f8c1bf911944
MD5 3db093b8fd4872a1b573b8d20bf66a5d
BLAKE2b-256 d82a90180fd3f637088405d2ba1a98fc201649d8867c761166abf6e6ac018b6a

See more details on using hashes here.

File details

Details for the file ninput-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: ninput-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ninput-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af04866a430ed1347e6b79dc4c34070a858138e2b764089cd7cc9fb427ee1609
MD5 00cc6d93236b82ebaf8bdfcd5e750afb
BLAKE2b-256 d1ce8ba20d3bc8e7c0f620c81d6211cb5bf635cbab8b9cb47e6f153785a59a17

See more details on using hashes here.

Supported by

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