skillfed

darkgraylib

Common supporting code for Darker and Graylint

darkgraylib v2.4.1 212.4K downloads/30d#9,459 on PyPI1
Permissive license BSD-3-Clause AGING released

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 darkgraylib

uv

uv add darkgraylib

poetry

poetry add darkgraylib

Installing 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

Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9

Tags

shared code library darker graylintcommon utilities code formattingdarker graylint dependenciespython linting shared librarycode quality tool infrastructure
code-qualityshared-library

More Quality Assurance packages