https://github.com/broadinstitute/xtermcolor
Python library for terminal color support (including 256-color support)
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
2 of 6 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.5%) to scientific vocabulary
Repository
Python library for terminal color support (including 256-color support)
Basic Info
Statistics
- Stars: 105
- Watchers: 21
- Forks: 10
- Open Issues: 4
- Releases: 0
Metadata Files
README.md
XTermColor: Easy Terminal Colors
XTermColor is a convenient python module for quickly colorizing text for output to the terminal either via ANSI color code or RGB color value. Support 256 colors!

Installation
With pip
bash
$ pip install xtermcolor
Or, via easy_install:
bash
$ easy_install xtermcolor
Or, Using setup.py from the project directory
bash
$ python setup.py install
Command Line Usage
$ xtermcolor --help
usage: xtermcolor [-h] [--color COLOR] [--compat {xterm,vt100}] {convert,list}
xtermcolor: 256 terminal color library
positional arguments:
{convert,list} Actions
optional arguments:
-h, --help show this help message and exit
--color COLOR Color to convert
--compat {xterm,vt100}
Compatibility mode. Defaults to xterm.
To convert an RGB value to a printf() string or the closest ANSI color code, use xtermcolor convert as follows:

Python Module Usage
Simply import the colorize function from the xtermcolor module. colorize() is always called with a string as the first argument, but has a number of keyword arguments that can be specified:
rgb- String of the RGB color value to color the text as.ansi- Integer value of the ANSI color code.bg- String of the RGB color value for the background color.ansi_bg- Integer value of ANSI color code for background color.fd- File descriptor that will be used to print the text. Defaults to stdout.
arguments rgb and ansi are mutually exclusive, as are bg and ansi_bg.

Owner
- Name: Broad Institute
- Login: broadinstitute
- Kind: organization
- Location: Cambridge, MA
- Website: http://www.broadinstitute.org/
- Twitter: broadinstitute
- Repositories: 1,083
- Profile: https://github.com/broadinstitute
Broad Institute of MIT and Harvard
GitHub Events
Total
Last Year
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Salvo 'LtWorf' Tomaselli | t****i@t****t | 23 |
| Scott Frazer | s****r@g****m | 15 |
| MrLokans | t****1@g****m | 3 |
| Scott Frazer | s****r@b****g | 2 |
| Guillaume Algis | g****s@g****m | 1 |
| Cory Li | c****i@m****u | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 7
- Total pull requests: 12
- Average time to close issues: 1 day
- Average time to close pull requests: 3 months
- Total issue authors: 4
- Total pull request authors: 4
- Average comments per issue: 1.14
- Average comments per pull request: 0.67
- Merged pull requests: 10
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ltworf (4)
- piotr-dobrogost (1)
- bkabrda (1)
- guillaumealgis (1)
Pull Request Authors
- ltworf (8)
- MrLokans (2)
- Cixelyn (1)
- guillaumealgis (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 6,366 last-month
- Total docker downloads: 5,433,906
- Total dependent packages: 7
- Total dependent repositories: 36
- Total versions: 9
- Total maintainers: 1
pypi.org: xtermcolor
Python module for colorizing output with xterm 256 color support
- Homepage: http://github.com/broadinstitute/xtermcolor
- Documentation: https://xtermcolor.readthedocs.io/
- License: MIT
-
Latest release: 1.2.1
published over 13 years ago