Skip to main content

Extensions to the print command and strings in general.

Project description

██████╗ ██╗   ██╗██████╗ ██████╗ ██╗███╗   ██╗████████╗██╗   ██╗
██╔══██╗╚██╗ ██╔╝██╔══██╗██╔══██╗██║████╗  ██║╚══██╔══╝╚██╗ ██╔╝
██████╔╝ ╚████╔╝ ██████╔╝██████╔╝██║██╔██╗ ██║   ██║    ╚████╔╝ 
██╔═══╝   ╚██╔╝  ██╔═══╝ ██╔═══╝ ██║██║╚██╗██║   ██║     ╚██╔╝  
██║        ██║   ██║     ██║     ██║██║ ╚████║   ██║      ██║   
╚═╝        ╚═╝   ╚═╝     ╚═╝     ╚═╝╚═╝  ╚═══╝   ╚═╝      ╚═╝   

version 1.0.1.

Description:

Extensions for printing and strings in general. Create simple animations, loading bars, manage user messages in custom fonts. Text designs, and special prints. And all - by yourself.

Documentation:

For documentation via github Click here.

license:

MIT © 2025 Yedidya steinmetz

simple example:

from pyprinty import Font, Ready


my_font = Font(load=Ready.FONT_CLASSIC) #  Creating a font, using a ready-made font

# Printing a message to the user from the font we created
print(my_font("hello ", input("What is your name?"), sep=" "), end="!")

# You don't have to use ready-made fonts, you can create your own, and much more!

little more:

This is just a part:

from pyprinty import Font, Ready
from pyprinty import Colors, Color
from pyprinty import Effects, Cursor
from pyprinty import Animation
from pyprinty import size


# Creating the fonts:
my_font = Font(
    text_color=Colors.RED,  # Ready color
    base_color=Color(0, 255, 0),  # Background color, Custom color
    effects=[Effects.Bold, Effects.Speedblink]  # Two ready-made effects
)
error_font = Font(load=Ready.FONT_ERROR)  # Creating a font and loading ready-made font settings Error
# Creating a management animation of the prints
my_animation = Animation(
    load={  # Loading by dict, this can also be done in font
        # Creates an animated object, sets the font, and makes it into a normal print mode.
        "message": {"font": my_font, "mode": "print"}
    }
)
# Adding an object manually, on glossy print mode
my_animation.add_font("error", error_font, mode="sun")
# Using the message object we created
my_animation.send(
    "message",  # the object
    "hello", input("What is your name?"),  # the text
    sep=" ", end=""  # The library preserves all parameters.
)
Cursor.PRINT(Cursor.CLEAR_ALL)  # Reset the entire terminal (there are many more such commands)
# Demonstration of printing via the print command using the error font
print(
    error_font(
        # Print the current line size and number of lines of the terminal
        "your consul size is", size(), sep=" "
    ),
    end="!"
)
# There's a lot more in this library!

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

pyprinty-1.0.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

pyprinty-1.0.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyprinty-1.0.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pyprinty-1.0.1.tar.gz
Algorithm Hash digest
SHA256 59cddc7ce5c690f8cc3356e68a5f0e5b19db452a8fd44f7b0c43ec8bcb6df924
MD5 6d44e970afa0869a0aa24350da89d2a2
BLAKE2b-256 a4544423e8257d4857149faecae9b6e804155df9bbd79927d9680015697b4dbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyprinty-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pyprinty-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aec16d82f9821c19dcc09035ec10db5362e3868e39746bd2e3356287789ed046
MD5 241d62402003639c5b364573c4e7ba9b
BLAKE2b-256 a83f49001ccd549b7586989f84a2f39574cf7778a6a84466b850decd95846c7f

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