Skip to main content

Terminal colored text.

Project description

dexcolor

dexcolor is a Python module that provides functionality for printing text with different colors, styles, and backgrounds in the terminal. It offers a convenient way to add visual enhancements to your console output.

Installation

You can install dexcolor using pip:

pip install dexcolor

Usage

Here are some examples of how to use dexcolor:

Example 1: Using color, style, and background

from dexcolor import DEX

print(DEX.purple('Example', style='bold', back='yellow'))

Output: The word "Example" will be printed in purple color, bold style, and yellow background.

Example 2: Using style only

from dexcolor import style

print(style.bold('Example'))

Output: The word "Example" will be printed in the default color with bold style.

Example 3: Using background only

from dexcolor import back

print(back.red('Example'))

Output: The word "Example" will be printed in the default color with a red background.

Example 4: Using reset

from dexcolor import DEX, style, back, RESET

print(DEX.purple('Example', style='bold', back='yellow') + RESET)
print(style.bold('Example') + RESET)
print(back.red('Example') + RESET)

Output: The word "Example" in each line will be printed with the specified color, style, and background, followed by a reset to revert to the default settings.

Additional Information

For more information and additional features provided by dexcolor, you can refer to the dexcolor GitHub repository or the dexcolor PyPI page.

Please note that the provided examples are just a subset of the capabilities of dexcolor. You can explore the module further to discover more options and customization possibilities.

Contribution and Feedback

If you have any suggestions, feature requests, or bug reports related to dexcolor, please feel free to contribute to the project on GitHub or provide feedback to the module's maintainers. Your input is valuable in improving the module and making it more versatile for a wider range of use cases.

Happy coding with dexcolor!

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

dexcolor-0.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

dexcolor-0.1-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page