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.24.tar.gz (4.1 kB view details)

Uploaded Source

Built Distributions

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

flowinput-1.0.24-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for flowinput-1.0.24.tar.gz
Algorithm Hash digest
SHA256 6d0f044d49ab908e9bf67fa5bc19155334bb4edfefdbd7e45adf0534590f2c81
MD5 3ffac8ced2dc840af6cf152e1f20b8e5
BLAKE2b-256 451605e663b48daaa537dd89c4822720eba2e8b3ac696052d1dd8e6100de9c5f

See more details on using hashes here.

File details

Details for the file flowinput-1.0.24-py3-none-any.whl.

File metadata

  • Download URL: flowinput-1.0.24-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for flowinput-1.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 a40d6b8e65b8835b26fddbfa3d7eef8e4428e033de5fcb32e8f9d84467f3e01c
MD5 ea3056e84d594da4f8ac3f3c910fcc44
BLAKE2b-256 271c780d871d564cce6c607e8ab0b6e452de0999d324cb965bc83f6e1616bd15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FlowInput-1.0.24-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.8

File hashes

Hashes for FlowInput-1.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 bba422617af5511ddc854fc8ab8b07ed3b7d85fc1b1059a1ee734364f6d09427
MD5 5a13f904754ecf80aed2d681ebe50750
BLAKE2b-256 3574016dd00d0ed152cd70409e0d9962d10ba89135e54b28c079c8cd88e58c5e

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