Skip to main content

Help your python code have colored input and output

Project description

colortruck

Examples of How To Use

Create intput with green prompt and output with blue

from colortruck import Truckcolors

clt=Truckcolors()
a=input(clt.GREEN+'Input something: ')
print(clt.BLUE+"Hello beatyfull truck")
# clt.reset can be added or not. after the program ends, your terminal will be reset in color.
print(clt.RESET)

# There are many other colors waiting for you to discover.

If you are going to convert python code to .exe you should add exe_cover()

from colortruck import Truckcolors


clt=Truckcolors()
clt.exe_cover()
a=input(clt.GREEN+'Input something: ')
print(clt.BLUE+"Hello beatyfull truck")
print(clt.RESET)

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

colortruck-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

colortruck-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file colortruck-0.1.0.tar.gz.

File metadata

  • Download URL: colortruck-0.1.0.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for colortruck-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58aa622adf0a77bf278f860ad845d11552226c64d0c1cb067dc39a4b564788af
MD5 c68f405fd761749768ff0a9d254237dd
BLAKE2b-256 e737a6e2400074f3d385a3fa8b03d73cb2453a5c1850f73df4f877740bd32236

See more details on using hashes here.

File details

Details for the file colortruck-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: colortruck-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for colortruck-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99043b040499911c72749f0cd7f0447f125de4b8b49941e25b57db2329bec5fc
MD5 f2b944212a88c1dbd1f1be8681e074c6
BLAKE2b-256 3790927e9d42f279d6d4678ff25e968a02a21a26d5e36fea96fecaae33dd74e2

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