Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mtly-13.2.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

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

mtly-13.2.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file mtly-13.2.1.tar.gz.

File metadata

  • Download URL: mtly-13.2.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.2

File hashes

Hashes for mtly-13.2.1.tar.gz
Algorithm Hash digest
SHA256 8755ee5948ff4358d472c84267ba4dccc622d72260f2a4ef5f89b0e4f9319a20
MD5 a5133976b88f60ba741ce6a5e790a4d1
BLAKE2b-256 d805bb223baeaf0b7a712061a830454977100f95b194d367fd57d87786726102

See more details on using hashes here.

File details

Details for the file mtly-13.2.1-py3-none-any.whl.

File metadata

  • Download URL: mtly-13.2.1-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

Hashes for mtly-13.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 50a02bee1ccb019aa44baa4817ce74faf31b284af084fc51fd7766e4fed7fd85
MD5 1f86b5039c313e23478be39379a153a9
BLAKE2b-256 3ca3f024160fe12b47dc271e3ba9ddfecb0cd0154f6df0e22151d25d5a775bc8

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