Skip to main content

More dynamic ways to ask for the inputs from the user.

Project description

SmartInputs

The more dynamic ways of asking for the user's inputs and handle the entered values in the real time.

Installation

pip install smart-inputs

Requirements

  • windows-curses

GitHub link

https://github.com/farbod-mahdian/smart_inputs

Usage

smart_input:

from smart_inputs.smart_input import smart_input

fav_color = smart_input('What is your favorite color:', default='Red')
print(fav_color)

multiple_choice:

from smart_inputs.multiple_choice import multiple_choice, Colors

fav_color = multiple_choice(
    'What is your favorite color:', options=['Blue', 'Red'], fg_color=Colors.GREEN)
print(fav_color)

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

smart_inputs-0.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

smart_inputs-0.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file smart_inputs-0.1.1.tar.gz.

File metadata

  • Download URL: smart_inputs-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for smart_inputs-0.1.1.tar.gz
Algorithm Hash digest
SHA256 994ffb44c22b2904c5180b53fe5ba1691dd2b1d795e812baae5b8370f6821ca1
MD5 b24b3f2178c98e85af33978b99d49bf2
BLAKE2b-256 02c50df6859aab545cea0e296bc0b06ec9df6565545d7dea5caeb609c47e346f

See more details on using hashes here.

File details

Details for the file smart_inputs-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: smart_inputs-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for smart_inputs-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a741bcdb9448f8d720faa060a90a8c09832f38bb6c628182f3e78e46d08c3ce
MD5 668362319f1a2045fcb6b03e36c52b04
BLAKE2b-256 43008ba83a33db6f28e0b4a1d7eb0958e8c9059d98f4f55c3bafcb30522c515b

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