Skip to main content

This is the simplest module for improved work with input.

Project description

Easy Input Library (EasyInput)

The library is distributed under the MIT license and can be downloaded and used by anyone.


How to install

To install, you can download library from the repository from GitHub


Using


Input

The arguments of main functions are:

input():

__prompt: str, __default: str, __colorful: bool, __color: Color or BgColor

  • __prompt: A String, representing a default message before the input.
  • __default: A String, representing a default message in the input
  • __colorful: A Bool Variable, representing whether the input will be colored
  • __color: A Color or BgColor Varible, representing Red, Green and Blue colors in the input

Colors

The main classes are:

Color

Color: A Class width many Str Variables, width ANSI codes of colors

BgColor

BgColor: A Class width many Str Variables, width ANSI codes of background colors


The arguments of main function are:

coloring():

__key: dict, __string: str

  • __key: A Dict Variable, in which the key is the word that needs to be colored, and the value is the color. Key of dict, have built-in words like this: __start__, __end__, __mid__, __all__. You can see their in examples
  • __string A Str Variable, which is the text to be colored

Some examples

Input

import EasyInput

EasyInput.input('What's your name? ', 'My name is Funsy')

Color

from EasyInput import colors

print(colors.coloring({'from': colors.Color.BLUE}, 'Hello from EasyInput!'))

print(colors.coloring({'__start__': colors.BgColor.RED}, 'Hello from EasyInput'))

Input & Color

import EasyInput

EasyInput.input('What’s your name? ', 'Funsy', True, EasyInput.colors.Color.BLUE)

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

flowinput-1.0.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

FlowInput-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowinput-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for flowinput-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fb758adfb091d631859d4c5d2608e9a8507f43312543384916296de6705af37c
MD5 8d73399fb24d1edd61d591d64943fedc
BLAKE2b-256 52d7d9fefb2796ef47a4a1508b8be063205f537b87e024c8434b2645223e1c1f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FlowInput-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for FlowInput-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31b67c74fa5f4f9a31e6807071fbe8a49a7b58d1f6fcf4932a8aefd5d6319ed0
MD5 ff44d83d6869e30b8ac4c0f182916e01
BLAKE2b-256 9be6c067d55d0c552ec676d54933bad575a0e38bea2833b5d5a0ac6959650125

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