darkgraylib
Common supporting code for Darker and Graylint
What it is and what it does
Darkgraylib is a shared library extracted from the Darker codebase to hold common functionality used by both Darker and Graylint. These two tools originated from the same code base but diverged in purpose—Darker focuses on code formatting while Graylint handles linting. Rather than duplicating maintenance effort, the shared under-the-hood pieces were factored into this package.
The package depends only on toml and supports Python 3.9 through 3.14. It is primarily intended to reduce code duplication between Darker and Graylint, though it is published as a public package. The repository is active but aging, with the last release 285 days ago.
Use it for:
- Install as a dependency when using Darker or Graylint, which both rely on this shared library.
- Develop extensions or tools that need to share code patterns with Darker or Graylint.
- Reference implementation patterns from the Darker/Graylint ecosystem for your own code quality tooling.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides shared utility code and abstractions used by Darker and Graylint, two Python code formatting and linting tools that evolved from a common codebase.
Yes, if you are using Darker or Graylint—it will be installed automatically as a dependency. As a standalone package, install it only if you are building tools that need to integrate with or extend the Darker/Graylint ecosystem. The aging maintenance status (285 days since last release) suggests it is stable but not actively developed; check whether Darker or Graylint have recent updates before relying on new features.
Install
darkgraylib on PyPI
pip
pip install darkgraylibuv
uv add darkgraylibpoetry
poetry add darkgraylibInstalling darkgraylib
Before you install
Low install friction with a single runtime dependency (toml). Maintenance status is aging—last release was 285 days ago, though the repository remains active with a recent commit on 2025-11-02.
License in practice
BSD-3-Clause permissive license allows use in most projects without significant restriction, though you should review the full license terms if your project has specific licensing requirements.
Quickstart
pip install darkgraylib
import darkgraylib
# Use shared utilities provided by the package
Requires Python 3.9 or later; supports Python 3.9 through 3.14.
Verify before relying
- What specific utilities and abstractions does darkgraylib export for direct use outside Darker and Graylint?
- Is this package intended as a public API or primarily as an internal shared dependency for those two tools?
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — toml |
| Maintenance | aging — 285 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 212,371/month — #9,459 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: darkgraylib-2.4.1-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
darkerDarker reformats Python source code in Git…
permissive · top 15,000 on PyPI
trame-commonProvides shared helper functions, decorators,…
permissive · top 5,000 on PyPI
apify-sharedApify Shared Python is a deprecated package…
permissive · top 5,000 on PyPI
ruamel.baseProvides a shared foundation for ruamel…
permissive · top 15,000 on PyPI
scverse-miscProvides shared utility functions and helpers…
permissive · top 5,000 on PyPI
esphome-glyphsetsProvides a lightweight glyph set library…
permissive · top 15,000 on PyPI
google-cloud-coreProvides shared base classes and utilities for…
permissive · top 1,000 on PyPI
wimpyWimpy provides a collection of commonly reused…
permissive · top 15,000 on PyPI
pymarkdownlntPyMarkdown is a GitHub Flavored Markdown linter…
permissive · top 5,000 on PyPI
lintroLintro unifies code formatting, linting, and…
permissive · top 15,000 on PyPI