dprint-py
a pluggable and configurable code formatting platform.
Decision gist · record as of 2026-08-14
Yes, if you need multi-language code formatting in a Python environment. The package is actively maintained, has no known vulnerabilities, and carries a permissive MIT license. Medium install friction is typical for compiled packages and should not deter use. Verify that dprint supports the file types you need before committing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Medium install friction due to platform-specific wheels (macOS arm64/x86_64, Linux aarch64/x86_64, Windows amd64/arm64).
- Active maintenance with a release 30 days ago and recent repository activity.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute dprint-py freely provided you include the license notice.
last release 2026-07-15 (30 days) · last repo commit 2026-08-14 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 141,410 downloads/mo, #11,241 on PyPI
Alternatives
Verify before relying
pip install dprint-py
import dprint
# Format a file or string
formatted = dprint.format_text(code_text, file_type='typescript')- Specific file types and languages supported by this version of dprint
- Configuration file format and available formatting options
- Performance characteristics and typical use patterns
- Whether this is a maintained fork or official PyPI distribution
What it is and what it does
dprint-py packages the dprint code formatter for Python environments. dprint is a pluggable formatting platform designed to handle multiple programming languages and file types through a single tool, with configuration-driven behavior. The package provides Python bindings to the underlying dprint engine, which is written in Rust.
You install it as a standard Python package and call its formatting functions from Python code. It has no runtime Python dependencies, relying instead on pre-compiled binaries for your platform. The wrapper lets you integrate dprint's formatting capabilities into Python workflows, scripts, or applications without managing a separate dprint binary.
Use it for
- Format code in multiple languages as part of a Python-based CI/CD pipeline
- Integrate code formatting into a Python development tool or IDE plugin
- Batch-format project files across different file types using a single configuration
- Enforce consistent code style in a polyglot codebase from a Python script
- Add formatting capabilities to a Python linting or code-quality tool
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need multi-language code formatting in a Python environment.
The package is actively maintained, has no known vulnerabilities, and carries a permissive MIT license. Medium install friction is typical for compiled packages and should not deter use. Verify that dprint supports the file types you need before committing.
Install
dprint-py on PyPI
Before you install
Medium install friction due to platform-specific wheels (macOS arm64/x86_64, Linux aarch64/x86_64, Windows amd64/arm64). Active maintenance with a release 30 days ago and recent repository activity.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute dprint-py freely provided you include the license notice.
Quickstart
pip install dprint-py
import dprint
# Format a file or string
formatted = dprint.format_text(code_text, file_type='typescript')
Verify before relying
- Specific file types and languages supported by this version of dprint
- Configuration file format and available formatting options
- Performance characteristics and typical use patterns
- Whether this is a maintained fork or official PyPI distribution
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.0 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 30 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 141,410 / month, #11,241 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: RustTopic :: Software Development |
Evidence: dprint_py-0.55.2.0-py3-none-macosx_11_0_arm64.whl; dprint_py-0.55.2.0-py3-none-macosx_11_0_x86_64.whl; dprint_py-0.55.2.0-py3-none-manylinux_2_17_aarch64.whl; dprint_py-0.55.2.0-py3-none-manylinux_2_17_x86_64.musllinux_1_1_x86_64.whl; dprint_py-0.55.2.0-py3-none-manylinux_2_17_x86_64.whl; dprint_py-0.55.2.0-py3-none-win_amd64.whl; dprint_py-0.55.2.0-py3-none-win_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “code formatter”
- dprint-pydprint-py is a Python wrapper for dprint, a pluggable and…
- gersemigersemi is a command-line formatter for CMake code that automatically…
- ruff-formatProvides Python bindings to Ruff's code formatter, allowing you to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also markdown-it-py · pyink · clang-format · objprint · flit · ruff-format · pytest-print · dict2xml · black