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, __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 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', True, 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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: flowinput-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 82b0ff91dcf43c0533205ca437e5e1e161a011b3f9ac70fbb06fa2fff7934516
MD5 e24b90b3edfc3baa9c912c5f5f1ce01b
BLAKE2b-256 3b3d8006fac7b2a1bd36601c9270f136876b99d38837efda5ef3cedb57a923fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: FlowInput-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6801607e7e0e0875ff1821a2e40ef340af7c2f5e7e1a488df2cb6fce98b94d47
MD5 f4b695dc59261638a7969120b3696ba2
BLAKE2b-256 a87111b1a39f8c63adad5dccc68fbc629f40cff7f2a01e62faaa738b72afad6b

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