
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
crayons
Advanced tools
.. image:: https://img.shields.io/pypi/v/crayons.svg :target: https://pypi.org/project/crayons/
.. image:: https://github.com/MasterOdin/crayons/workflows/Test/badge.svg :target: https://github.com/MasterOdin/crayons/actions?query=workflow%3ATest+branch%3Amaster
.. image:: https://img.shields.io/pypi/l/crayons.svg :target: https://pypi.python.org/pypi/crayons
.. image:: https://img.shields.io/pypi/wheel/crayons.svg :target: https://pypi.python.org/pypi/crayons
.. image:: https://img.shields.io/pypi/pyversions/crayons.svg :target: https://pypi.python.org/pypi/crayons
This module is really simple, it gives you colored strings for terminal
usage. Included colors are red, green, yellow, blue, black, magenta, cyan, white, and
normal (as well as clean and disable).
Crayons is nice because it automatically wraps a given string in both the foreground color, as well as returning to the original state after the string is complete. Most terminal color libraries make you manage this yourself.
Arguments include always=True and bold=True.
disable(), all future calls to colors will be ignored.normal(), color is reset to default foreground color::
# red is red, white is white.
>>> print('{} white'.format(crayons.red('red')))
red white
That's it!
::
$ pip install crayons
FAQs
TextUI colors for Python.
We found that crayons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.