--- id: dprint-py version: "0.55.2.0" license: MIT license_treatment: permissive maintenance: active --- # dprint-py — a pluggable and configurable code formatting platform. License: permissive · Maintenance: active · Downloads: 141.4K/mo ## 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 above — verify before relying. dprint-py is a Python wrapper for dprint, a pluggable and configurable code formatting platform that can format multiple file types through a unified interface. 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 pip install dprint-py uv add dprint-py poetry add dprint-py ## Installing dprint-py 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_current - Install friction: medium - Maintenance: active - Downloads: 141.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags code formatter, multi-language formatter, pluggable formatter, configurable code formatting, dprint wrapper, format code files, code formatting platform, code-formatter, rust-binding, multi-language [View on SkillFed](https://skillfed.io/packages/dprint-py) · [View on PyPI](https://pypi.org/project/dprint-py/)