skillfed

pytailwindcss

Standalone Tailwind CSS CLI, installable via pip. Use Tailwind CSS without Node.js.

pytailwindcss v0.3.1 267.6K downloads/30d#8,288 on PyPI345
Permissive license MIT Active released

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

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

pytailwindcss on PyPI

pip

pip install pytailwindcss

uv

uv add pytailwindcss

poetry

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 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)

Evidence: pytailwindcss-0.3.1-py3-none-any.whl

Keywords: cli, css, tailwind

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

Tags

tailwind css without node.jstailwind cli pip installcss framework pythonstandalone tailwind binarytailwind css python wrappercss compilation tooltailwind without npm
css-toolingcli-wrapperno-nodejs

More Libraries packages