Skip to main content

Various functions to get input from the user

Project description

Extra Input

A simple helper lib with a few extra ways to get input from the user

How to use:

import extra_input

option = extra_input.selector(["Option [1]","Option [2]"])

print(f"you selected {option}")

Functions:

  • select(options:list[str], squareBrackets = True) -> str Selects from a list of items, by defualt uses the items in the first square brackets of the list
  • numbered_select(options:list[str], use_parens = False, roman_numerals = False) -> str Selects from a list of items, selecting by using numbers not needed in the list Can use 1) or roman numerals
  • intput(text:str) -> int Gets input and only allows ints
  • float_input(text:str) -> float Gets input and only allows floats
  • custom_input(text:str, allowed:str, tellAllowed = True) -> str Gets input only allowing the charecters in allowed

Ideas, Errors, or Helping

If you want to do any of the three please email me at lpowyt3@gmail.com

Github

You can see the github here: extra-input github

Changelog:

  • 1.0.5:
    • Fixed a bug where PyPI didn't show this whole readme
  • 1.0.4:
    • Fixed some misc bugs
    • Fixed selector using the wrong index
    • Fixed selector using its own charecter making it more error prone
  • 1.0.0 - 1.0.3:
    • Firguring out how to make this work

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

extra_input-1.0.6.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

extra_input-1.0.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file extra_input-1.0.6.tar.gz.

File metadata

  • Download URL: extra_input-1.0.6.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for extra_input-1.0.6.tar.gz
Algorithm Hash digest
SHA256 bcabc09c79d56a27ca5610c3a4a0bf240e4bec20d10a8f0cd6a10ff4bd711480
MD5 b2c147b80663d1959a18b2ca488b785f
BLAKE2b-256 19259026a9c0f8f11f99e03bf6212108847565501992b0c59bbf7b34237a3781

See more details on using hashes here.

File details

Details for the file extra_input-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: extra_input-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for extra_input-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 31f2add7b32f348fce943958ebc13aeb3401882a815055804fa7396f8bdd692c
MD5 29a6508d8ab3ed8edaa9990162e618bc
BLAKE2b-256 72280b5f5ce2897cd3a34d03662c57d7c0f9e38ed39e6d40063cc0acb676bd2d

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