Skip to main content

Python package - input_num is like input but it only accepts numbers

Project description

CodeFactor

input_num

Python package - input_num is like input but it only accepts numbers


‎rnot enough

Instalation

  • Windows / macOS

    Run python3 -m pip install input_num

  • Linux

    Run python3 -m pip install input_num

Usage

  • Windows / macOS / Linux

    Add this to your script: import input_num input_num("Enter your age: ")

    ‎ Command scheme: input_num("Question: ", AllowNegativeNumbers, DoesPressingEnterReturnNothing)

    • First option: If you want to allow only positive numbers (numbers WITHOUT - at the begining), use input_num("Something", False). False just means Allow negative numbers = False And it is optional argument Default value is True

    • Second option: There is also second option, does pressing enter return "" ? Set it to False to make pressing enter ask you again. Example: input_num("Try pressing enter: ", True, False) - this allows negative numbers and disallows entering nothing. It is optional argument Default value is True

    ‎ ⚠️ If you want to set only second option, set the first option too ⚠️

Uninstallation

  • Windows / macOS

    Run python3 -m pip uninstall input_num

  • Linux

    Run python3 -m pip uninstall input_num

FAQ

  • Question

    Answer

Do you like this? Hit that ⭐!
Use the star button as way to show us, that it works
Forks and pull requests are welcome of course

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

input_num-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

input_num-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file input_num-1.0.0.tar.gz.

File metadata

  • Download URL: input_num-1.0.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for input_num-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fd6bde345089a08ca0ebd94961468851809a21f2c40b5a35328a640c97b1d78f
MD5 12b137afa2c4899528d4e8366d393674
BLAKE2b-256 6110f171b8cc3488789559a8324d51606d46034d36932a36fa957092363a6f96

See more details on using hashes here.

File details

Details for the file input_num-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: input_num-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for input_num-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93004f1f66522446a4693347d1b4fe77ab58a4b43eccdb18abdcbe5d9a88955b
MD5 a29883370c1620230993362f02aacc85
BLAKE2b-256 8dfdab65f45260cef9f89949497be57b5820c9960962f34adb99c1c23861b37f

See more details on using hashes here.

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