Skip to main content

Simple color libary for terminals.

Project description

What is tolor?

  • Tolor is simple color libary for python.
  • You can use predefined colors or hex codes for coloring.
  • Also you can use gradient function for smooth colored texts

How to install?

  • First you need open terminal and execute pip install tolor command
  • After installing you can simple import package with import tolor command

How to use?

  • I will show you example code for understand.
from tolor import init, color, gradient

init() # Its important to init

print(f"{color.red}Example red message!{color.reset}")
print(f"{color.hex('#06E978')}Example colored message with hex code!{color.reset}")
print(gradient("blue", "green", "Gradient text from blue to green!"))
print(gradient("#FF0000", "#06E978", "Gradient text with hex!"))
  • There list of predefined colors: black, red, green, blue, yellow, cyan, magenta, white, gray, orange, pink, purple, brown, lime, teal, indigo, gold, silver, maroon

Ending

  • If you liked project and want to support me please leave star on github.
  • Thanks for using my libary

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

tolor-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

tolor-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file tolor-1.0.0.tar.gz.

File metadata

  • Download URL: tolor-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for tolor-1.0.0.tar.gz
Algorithm Hash digest
SHA256 546efa16b25de1ecacbd9e598a32e985cf78d3163d84d72140b8a3537d8a9c29
MD5 696924a1f98408f55d49fedf798ad79f
BLAKE2b-256 c432b7e7300637ac20dd89fb70653ad5b9bf9505be11ef438a5c66e4e4087c53

See more details on using hashes here.

File details

Details for the file tolor-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tolor-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.4

File hashes

Hashes for tolor-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16a160b0fa458afc55a1dcd315e07491f3833bca976cee790f128911e18dcffa
MD5 340d7b4b5f55ad1ea31ec5dff62b3dfe
BLAKE2b-256 58aa053a29bec48918f03990cabbd2082599439df360062ded709a864aee68c8

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