skillfed

style

🌈 Terminal string styling

style v1.1.6 149.4K downloads/30d#10,993 on PyPI12
Permissive license MIT Abandoned released

What it is and what it does

style is a lightweight terminal styling library that lets you apply colors and text modifiers (bold, underline, etc.) to strings using a chainable API. You import it, chain style names together, and call the final one as a method with your text—for example, style.red.bold('text') produces bold red output. The API is modeled after the popular JavaScript chalk package, so it will feel familiar if you've used that.

The package automatically detects whether your terminal supports colors and can be toggled on or off manually. It supports standard ANSI colors, light variants, background colors, and text modifiers like bold, dim, italic, underline, inverse, hidden, and strikethrough. Styles can be nested and chained in any order, with later styles taking precedence in conflicts.

Use it for:

  • Colorize CLI tool output to highlight errors, warnings, and success messages for better readability.
  • Style log messages in terminal applications to distinguish log levels (error in red, warning in yellow, info in blue).
  • Create visually distinct prompts and user-facing text in interactive command-line scripts.
  • Format test output or build tool logs to make pass/fail status immediately obvious at a glance.
  • Add visual polish to terminal-based dashboards or monitoring scripts with colored and styled text.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Applies ANSI color and text styling to terminal output using a chainable API inspired by the JavaScript chalk package.

Yes, if you need simple terminal styling for a short-lived script or tool and can tolerate the lack of maintenance. The package is stable and has no known vulnerabilities, but it has been abandoned since 2019. For new projects or long-term maintenance, consider an actively maintained alternative like colorama or rich instead.

Install

style on PyPI

pip

pip install style

uv

uv add style

poetry

poetry add style

Installing style

Before you install

Installation is frictionless with no runtime dependencies. However, the package is abandoned—last release was 2019-03-08 and last commit 2022-05-03, with no active maintenance.

License in practice

MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license notice.

Quickstart

pip install style

import style
print(style.red('Hello', style.bold('world') + '!'))

Verify before relying

  • Whether the package works reliably on modern Python versions beyond 3.6, given the lack of recent maintenance.
  • Whether color detection and terminal compatibility remain robust across current terminal emulators and environments.

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 2,716 days since the last release
Last repo commit
First released
Downloads 149,400/month — #10,993 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: style-1.1.6-py2.py3-none-any.whl

Keywords: style, color, ansi, terminal styling, chalk

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishProgramming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6

Tags

terminal color stylingansi text formattingcolored terminal outputterminal string stylingchalk-like pythonterminal text colorsansi color codes
terminal-uiansi-colors

More Terminals packages