--- id: pytailwindcss version: "0.3.1" license: MIT license_treatment: permissive maintenance: active --- # pytailwindcss — Standalone Tailwind CSS CLI, installable via pip. Use Tailwind CSS without Node.js. License: permissive · Maintenance: active · Downloads: 267.6K/mo ## What it is and what it does pytailwindcss wraps the official Tailwind CSS standalone CLI—a self-contained executable released by the Tailwind team—and packages it as a pip-installable module. This eliminates the need for Node.js or npm in your Python project or Docker container. When you install pytailwindcss, you get a tailwindcss command-line tool that can compile, watch, and minify CSS files using Tailwind's full feature set. The package downloads the appropriate standalone binary on first use (or via an explicit tailwindcss_install command) and caches it locally. You can pin a specific Tailwind version via the TAILWINDCSS_VERSION environment variable. The standalone build includes all four official Tailwind plugins (aspect-ratio, forms, line-clamp, typography) but does not support third-party npm plugins, since there is no Node.js runtime. For most typical Tailwind usage—utility-first CSS generation, config-based customization, and development workflows—this limitation is not a blocker. Use it for: - Python web projects (Django, FastAPI, etc.) where adding Node.js and npm to the build pipeline is undesirable. - Docker containers for Python applications that need CSS compilation without a separate Node.js image layer. - Teams that want to keep Tailwind CSS tooling inside the Python ecosystem and pip dependency management. - Development workflows where you need to compile and watch Tailwind CSS files without npm scripts. - Production builds that minify and optimize Tailwind CSS as part of a Python-based deployment process. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Installs and wraps the standalone Tailwind CSS CLI as a pip package, letting you use Tailwind CSS without Node.js or npm. Yes, if you are building a Python project that needs Tailwind CSS and want to avoid Node.js. Install friction is minimal, maintenance is active, and the MIT license is permissive. The trade-off—no third-party npm plugins—is acceptable for most projects. No known security vulnerabilities as of the latest check. ## Install pip install pytailwindcss uv add pytailwindcss poetry add pytailwindcss ## Installing pytailwindcss Before you install: Low friction: pure Python wheel with no runtime dependencies. Actively maintained as of June 2026, with recent releases and a modest but engaged user base. License in practice: MIT license permits free use, modification, and distribution with minimal restrictions—suitable for most commercial and open-source projects. Quickstart: pip install pytailwindcss tailwindcss_install tailwindcss -i input.css -o output.css --minify Requires Python 3.11 or later. The standalone Tailwind binary is downloaded on first use or via the tailwindcss_install command; no system Node.js needed. Verify before relying: - Whether the downloaded Tailwind binary is cached across virtual environments or reinstalls. - Performance characteristics of the standalone binary compared to Node.js-based Tailwind CLI. - Compatibility with third-party Tailwind plugins beyond the four official ones mentioned. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 267.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags tailwind css without node.js, tailwind cli pip install, css framework python, standalone tailwind binary, tailwind css python wrapper, css compilation tool, tailwind without npm, css-tooling, cli-wrapper, no-nodejs [View on SkillFed](https://skillfed.io/packages/pytailwindcss) · [View on PyPI](https://pypi.org/project/pytailwindcss/)