--- id: style version: "1.1.6" license: MIT license_treatment: permissive maintenance: abandoned --- # style — 🌈 Terminal string styling License: permissive · Maintenance: abandoned · Downloads: 149.4K/mo ## 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 above — 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 pip install style uv add style 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: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 149.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags terminal color styling, ansi text formatting, colored terminal output, terminal string styling, chalk-like python, terminal text colors, ansi color codes, terminal-ui, ansi-colors [View on SkillFed](https://skillfed.io/packages/style) · [View on PyPI](https://pypi.org/project/style/)