Skip to main content

A python library for advanced text management

Project description

text-advanced

Points:

  • A python library made for text management.
  • Uses no other dependencies.

Class:

Color(number: int, name: str):

  • A color class for terminal color

All colors are:

Color.Red()
Color.Black()
Color.Green()
Color.Yellow()
Color.Blue()
Color.White()
Color.Default()

Modules:

inputs:

selector(prompt, selected_prompt):

  • this is used for input in a rich style, Ex:
from text_advanced.inputs import selector

ask = selector("What is the date?")
  • Output will be:
What is the date? >>
  • After entering some date like 8-7-2026, the text would change to:
Selected Option (8-7-2024)

printing:

class Stream(*values):

  • this class is used for streaming outputs
from text_advanced.printing import Stream

textstr = Stream("Hello What's up")
print_stream(timer: float, sep: str, end: str):
  • prints the text letter by letter
print_spaces(timer: float, sep: str, end: str):
  • prints the text space by space
print_newline(timer: float, sep: str, end: str):
  • prints the text newline by newline

function prints(*vals: str, color: Color | None, sep, end: str, flush: bool):

  • prints the string with a specific color.

CHANGE LOG

  • latest release

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

text_advanced-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

text_advanced-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: text_advanced-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for text_advanced-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bf4d667de81cd33e9854c765bd022a2add9d2c2dd6407bdf0127a5dec18f3e8f
MD5 c2d5bb6fc2ffdc5013519bc81b3de0aa
BLAKE2b-256 ac5cb51b6a87b029c3093f33d3f6774cdd26ce59234c35d4d2ee239cf63a865f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: text_advanced-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for text_advanced-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0d2d0f2fa592fa2e9c948a486f3b897ed894f9be97c37b2bc85f49dc5cc7ce
MD5 dc0688e04d4d84a634fb1359bc422b3b
BLAKE2b-256 086c3191e9c017c511cabb74642a07c1395fad312da2598d52d7332afe565a80

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