A Python package for various utilities
Project description
A simple package containing various command-line utilities.
Installation
pip install mizue
Usage
Printer
from mizue.printer import Printer, TerminalColors as Color
Printer.print_ansi("Hello World!")
Printer.print_ansi("Hello World!", Color.RED)
Printer.print_ansi("Hello World!", Color.RED, bold=True, underlined=True)
The Printer class is a simple wrapper around the print function. It allows you to print colored text to the terminal. The TerminalColors class contains a list of colors that can be used with the Printer class.
The Printer class also provides the following methods:
from mizue.printer import Printer, TerminalColors as Color
Printer.error("Hello World!")
Printer.warning("Hello World!")
Printer.success("Hello World!")
Printer.info("Hello World!")
It is possible to prevent the new line character from being printed at the end of the line:
from mizue.printer import Printer, TerminalColors as Color
Printer.prevent_newline(True)
Printer.print_ansi("Hello World!", Color.RED)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mizue-0.3.0.tar.gz.
File metadata
- Download URL: mizue-0.3.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e485472ca7dca2f7b3c53f538db786c1706c574c5510388c2f52d2149ab6c27
|
|
| MD5 |
2357d93c02da9fbce1552955be4abf4c
|
|
| BLAKE2b-256 |
9eb070d84c0f8bb8f97977ebf19f342dc66de1a701953fb67d5fa3a68dc1f564
|
File details
Details for the file mizue-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mizue-0.3.0-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
683b35f1d27960f4d94a0056428883d7de41a933998b60d3030a87ab132beebf
|
|
| MD5 |
373a9f338e6ebeadcc6edf1fa7d38828
|
|
| BLAKE2b-256 |
f176523c2be06b59b66c8f8036c7f9dd6d863101a0608da3aafa6a368915be80
|