No project description provided
Project description
mtly
- Библиотека для кастомизации текста
Быстрый старт
pip install mtly
Примеры использования
Для начала нужно импортировать функцию motley, которая и будет выполнять всю работу
from mtly import motley
14 цветов, 3 цветовые комбинации и 3 стиля
Вы можете КОМБИНИРОВАТЬ их как захотите
from mtly import motley
print(motley(text="Все цвета:"))
print(f'{motley(text="green")}: {motley(text="Hello World", color="green")}')
print(f'{motley(text="dark_green")}: {motley(text="Hello World", color="dark_green")}')
print(f'{motley(text="light_blue")}: {motley(text="Hello World", color="light_blue")}')
print(f'{motley(text="blue")}: {motley(text="Hello World", color="blue")}')
print(f'{motley(text="dark_blue")}: {motley(text="Hello World", color="dark_blue")}')
print(f'{motley(text="yellow")}: {motley(text="Hello World", color="yellow")}')
print(f'{motley(text="orange")}: {motley(text="Hello World", color="orange")}')
print(f'{motley(text="pink")}: {motley(text="Hello World", color="pink")}')
print(f'{motley(text="dark_pink")}: {motley(text="Hello World", color="dark_pink")}')
print(f'{motley(text="red")}: {motley(text="Hello World", color="red")}')
print(f'{motley(text="purple")}: {motley(text="Hello World", color="purple")}')
print(f'{motley(text="dark_purple")}: {motley(text="Hello World", color="dark_purple")}')
print(f'{motley(text="grey")}: {motley(text="Hello World", color="grey")}')
print(f'{motley(text="black")}: {motley(text="Hello World", color="black")}')
print()
print(f'{motley(text="Все цветовые комбинации:")}')
print(f'{motley(text="fresh")}: {motley(text="Hello World", color_combo="fresh")}')
print(f'{motley(text="volcano")}: {motley(text="Hello World", color_combo="volcano")}')
print(f'{motley(text="night")}: {motley(text="Hello World", color_combo="night")}')
print()
print(f'{motley(text="Все стили:")}')
print(f'{motley(text="bold")}: {motley(text="Hello World", style="bold")}')
print(f'{motley(text="italic")}: {motley(text="Hello World", style="italic")}')
print(f'{motley(text="bold_italic")}: {motley(text="Hello World", style="bold_italic")}')
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
mtly-14.0.0.tar.gz
(7.2 kB
view details)
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
mtly-14.0.0-py3-none-any.whl
(5.1 kB
view details)
File details
Details for the file mtly-14.0.0.tar.gz.
File metadata
- Download URL: mtly-14.0.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a35fd82c8e5c3a13b6075efb0aaf395cb94761b5fd6d642892122daab48131b
|
|
| MD5 |
3a567fdfecc64b71e7f55f5c5e3c50cf
|
|
| BLAKE2b-256 |
7553ea6530cd5cb4ffd8011dbd5af426987edc121b013688630b650381b968ea
|
File details
Details for the file mtly-14.0.0-py3-none-any.whl.
File metadata
- Download URL: mtly-14.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b3c34a5dcab468ff20240312050222f4eb6636ef6a205f24f036b5d732ff437
|
|
| MD5 |
a81004329d5c89830fed3dd6514f7292
|
|
| BLAKE2b-256 |
28f5198761d581fb002c59579939872245dccfa598983cc23a0fa07f1c49aab8
|