Skip to main content

This is the simplest module for improved work with input.

Project description

Flow Input Library (FlowInput)

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


How to install

To install, you can download use pip: pip install FlowInput

Or download library from the repository from GitHub


Using


Input

The arguments of main functions are:

input():

prompt: str, default: str, color: Color or BgColor

  • prompt: A String, representing a default message before the input.
  • default: A String, representing a default message in the input
  • 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 FlowInput

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

Color

from FlowInput import colors

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

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

Input & Color

import FlowInput

FlowInput.input('What’s your name? ', 'Funsy', FlowInput.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.23.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

FlowInput-1.0.23-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowinput-1.0.23.tar.gz
  • Upload date:
  • Size: 4.1 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.23.tar.gz
Algorithm Hash digest
SHA256 00e7761ef01cc60c3c722be9b76ce7ea95864d24fea9b288b5433ac39a586395
MD5 681275696c5d86363616969b11344759
BLAKE2b-256 406af7cc0fa15b9725ae5dc405c1f5a04760ee52a04f320bef91878e9b0da217

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FlowInput-1.0.23-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.23-py3-none-any.whl
Algorithm Hash digest
SHA256 72cf46fde4916cfd4a510d1623ad08bdc2cc49c93f291f9ee3b047057610912b
MD5 895f8c4f937187bfe80e57845d7bbbb2
BLAKE2b-256 c19eedb109f6271eb27f92c148c83fb92169acb22496315236800c59196e0d16

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