pytailwindcss
Standalone Tailwind CSS CLI, installable via pip. Use Tailwind CSS without Node.js.
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- 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.
- Low friction: pure Python wheel with no runtime dependencies.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for most commercial and open-source projects.
last release 2026-06-12 (63 days) · last repo commit 2026-06-12 · 345 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 267,631 downloads/mo, #8,288 on PyPI
Alternatives
Verify before relying
pip install pytailwindcss
tailwindcss_install
tailwindcss -i input.css -o output.css --minify- 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.
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 on this page. Verify before relying on it.
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
pytailwindcss on PyPI
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.
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.
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
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 the current Python release >=3.11 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 63 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 267,631 / month, #8,288 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: LibrariesTopic :: Utilities |
Evidence: pytailwindcss-0.3.1-py3-none-any.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 › “tailwind css without node.js”
- pytailwindcssInstalls and wraps the standalone Tailwind CSS CLI as a pip package,…
- django-tailwindIntegrates Tailwind CSS into Django projects with optional hot…
- crispy-tailwindProvides Tailwind CSS styling templates for django-crispy-forms,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also django-tailwind · crispy-tailwind · vbuild · django-unfold · lesscpy · libsass · nodejs-wheel · nodejs-wheel-binaries · cssutils · Flask-Minify