Skip to main content

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

Metadata

Release files for extra-input 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for extra-input 1.0.6
File Size Uploaded Provenance Actions
extra_input-1.0.6.tar.gz 2.7 kB Without provenance Details for extra_input-1.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for extra-input 1.0.6
File Interpreter ABI Platform Actions
extra_input-1.0.6-py3-none-any.whl Python 3 none any Details for extra_input-1.0.6-py3-none-any.whl

Total release size: 5.9 kB

Release files / extra_input-1.0.6.tar.gz

Download URL extra_input-1.0.6.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bcabc09c79d56a27ca5610c3a4a0bf240e4bec20d10a8f0cd6a10ff4bd711480
BLAKE2b-256 checksum
How to use checksums
19259026a9c0f8f11f99e03bf6212108847565501992b0c59bbf7b34237a3781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / extra_input-1.0.6-py3-none-any.whl

Download URL extra_input-1.0.6-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31f2add7b32f348fce943958ebc13aeb3401882a815055804fa7396f8bdd692c
BLAKE2b-256 checksum
How to use checksums
72280b5f5ce2897cd3a34d03662c57d7c0f9e38ed39e6d40063cc0acb676bd2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for extra-input 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page