Skip to main content

Make your terminal output a little more colorful.

Project description

ColorXs

Make your terminal output a little more colorful.

PyPI - Version PyPI - Python Version PyPI - License

Table of Contents

Install

To install ColorXs use pip.

pip3 install colorxs

Quick Start

To get started with ColorXs first import functions from colorxs into your project like this.

from colorxs import FUNCTIONS_HERE

To find out what to import, and how to use ColorXs check out the docs.

Docs

Color

A Color made from an RGBValue.

Usage:

from colorxs import Color, RGBValue, HexValue

# Make from RGBValue
color = Color(RGBValue(255, 255, 255))

# Make from HexValue
color = Color(HexValue("#ffffff").toRGB())

# Make from preset
color = Color.WHITE

# print with color
# Color.RESET sets color back to normal
print(f"{color}Hello World{Color.RESET}")
# Hello World (in white)

RGBValue

Used to store basic RGB data.

Usage:

from colorxs import RGBValue

rgb = RGBValue(255, 255, 255)
hexFromRGB = rgb.toHex()

print(rgb)
# RGBValue(255, 255, 255)
print(hexFromRGB)
# #ffffff

HexValue

Used to store basic Hex data.

Usage:

from colorxs import HexValue

h = HexValue("#FFFFFF")
rgbFromHex = h.toRGB()

print(h)
# #ffffff
print(rgbFromHex)
# RGBValue(255, 255, 255)

Contributing

All types of contibutions are welcome for the ColorXs project, whether its updating the documentation, reporting issues, or simply mentioning TSafe in your projects.

Remember this before contibuting, you should open an Issue if you don't think you can contribute and open a Pull Request if you have a patch for an issue.

Reporting Bugs

Before you submit a bug report make sure you have the following information or are using the following things.

  • Make sure you're on the latest version.
  • Make sure its not just on your end (if you were possibly using a python version we dont support).
  • Check issues to see if it has already been reported.
  • Collect the following info about the bug:
    • Stack Trace.
    • OS, Platform and Version (Windows, Linux, macOS, x86, ARM).
    • Possibly your input and the output.
    • Can you reliably reproduce the issue?

If you have all of that prepared you are more than welcome to open an issue for the community to take a look at.

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

colorxs-1.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

colorxs-1.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file colorxs-1.0.1.tar.gz.

File metadata

  • Download URL: colorxs-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for colorxs-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6a1ea36d2b20269d4a96a626ddbf72b11159fc5e33f1132937e53d7bf890fed3
MD5 f8de911928d467c9449fd8dd12c69f32
BLAKE2b-256 aa8ffbe229272b554e6b2611e50097a90fecf70f1a12010f237845ea1c646c6a

See more details on using hashes here.

File details

Details for the file colorxs-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: colorxs-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for colorxs-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15ddef89082355cebcd628777f0b721931c4077ade70fba357cedcc4cc4be085
MD5 0da5b1303351a1b0d8fb4261e3694fe4
BLAKE2b-256 84b2153d33b0af0ce9502abb7805003afa134b5974c52eb6bc05dd0980aa1b88

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