pytailwindcss


Namepytailwindcss JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/timonweb/pytailwindcss
SummaryStandalone Tailwind CSS CLI, installable via pip. Use Tailwind CSS without Node.js.
upload_time2023-06-23 21:23:35
maintainer
docs_urlNone
authorTim Kamanin
requires_python>=3.8,<4.0
licenseMIT
keywords cli tailwind css
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Standalone Tailwind CSS CLI, installable via pip

Use *Tailwind CSS* without *Node.js* and install it via pip.

## Why

*Tailwind CSS* is notoriously dependent on *Node.js*. If you're a *Python* developer, this dependency may not be welcome
in your team, your Docker container, or your inner circle.

The *Tailwind CSS* team recently announced a new standalone CLI build that gives you the full power of *Tailwind CLI* in
a self-contained executable — no *Node.js* or `npm` required.

However, installing such a standalone CLI isn't as easy as running `npm install`, the installation command for *Node.js*
.

That's why I decided to make it as simple as running `pip install` command. As a result you can install the standalone *
Tailwind CLI* via `pip` by running the following command:

```bash
pip install pytailwindcss
```

Now you can run `tailwindcss` in your terminal as:

```
tailwindcss -i input.css -o output.css --minify
```

Voila!

## Get started

1. Install `tailwindcss` via `pip` by executing the following command:

   ```
   pip install pytailwindcss
   ```

2. [Optional] Preinstall `tailwindcss` binary by running the following command:

   ```
   tailwindcss_install
   ```

   If you skip this step, the binary will be downloaded on the first run of `tailwindcss` command.

3. The `tailwindcss` command should now be available in your terminal. Try to run it:

   ```
   tailwindcss
   ```

   If the installation was successful, you should see the message about binary being downloaded on the first run. When download is complete, you should see the help output for the `tailwindcss` command. Use `tailwindcss`
   to create a new project or work with an existing *Tailwind CSS* project.

4. Let's create a new project. Go to the directory where you want to host your *Tailwind CSS* project and initialize it
   by running:

   ```
   tailwindcss init
   ```

   This command will create the default *tailwind.config.js* file.

5. Start a watcher by running:

   ```
   tailwindcss -i input.css -o output.css --watch
   ```

6. Compile and minify your CSS for production by running:

   ```
   tailwindcss -i input.css -o output.css --minify
   ```

You got it. Please refer to [official Tailwind documentation](https://tailwindcss.com/docs) for more information on
using *Tailwind CSS* and its CLI.

## Caveats

It's not all roses, though. Giving up *Node.js* means you won't be able to install plugins or additional dependencies for
your *Tailwind CSS* setup. At the same time, that might not be a dealbreaker. You can still customize *Tailwind CSS* via
the *tailwind.config.js* file. And the standalone build also comes with all official *Tailwind CSS* plugins
like `@tailwindcss/aspect-ratio`, `@tailwindcss/forms`, `@tailwindcss/line-clamp`, and `@tailwindcss/typography`. So in
90% of *Tailwind CSS* usage cases you should be covered, and the setup is so simplified now.

Here is what the *Tailwind CSS* team says about going the standalone *Tailwind CSS* route:
> If you’re working on a project where you don’t otherwise need *Node.js* or `npm`, the standalone build can be a great choice. If Tailwind was the only reason you had a package.json file, this is probably going to feel like a nicer solution.

## Bugs and suggestions

If you have found a bug, please use the issue tracker on GitHub.

[https://github.com/timonweb/pytailwindcss/issues](https://github.com/timonweb/pytailwindcss/issues)

2021 (c) [Tim Kamanin - A Full Stack Django and Wagtail Developer](https://timonweb.com)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/timonweb/pytailwindcss",
    "name": "pytailwindcss",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "cli,tailwind,css",
    "author": "Tim Kamanin",
    "author_email": "tim@timonweb.com",
    "download_url": "https://files.pythonhosted.org/packages/f3/55/91e655cfbd8e18a777cae3bdd91be02a85fa69e29a4685ab92a87b2ec8cd/pytailwindcss-0.2.0.tar.gz",
    "platform": null,
    "description": "# Standalone Tailwind CSS CLI, installable via pip\n\nUse *Tailwind CSS* without *Node.js* and install it via pip.\n\n## Why\n\n*Tailwind CSS* is notoriously dependent on *Node.js*. If you're a *Python* developer, this dependency may not be welcome\nin your team, your Docker container, or your inner circle.\n\nThe *Tailwind CSS* team recently announced a new standalone CLI build that gives you the full power of *Tailwind CLI* in\na self-contained executable \u2014 no *Node.js* or `npm` required.\n\nHowever, installing such a standalone CLI isn't as easy as running `npm install`, the installation command for *Node.js*\n.\n\nThat's why I decided to make it as simple as running `pip install` command. As a result you can install the standalone *\nTailwind CLI* via `pip` by running the following command:\n\n```bash\npip install pytailwindcss\n```\n\nNow you can run `tailwindcss` in your terminal as:\n\n```\ntailwindcss -i input.css -o output.css --minify\n```\n\nVoila!\n\n## Get started\n\n1. Install `tailwindcss` via `pip` by executing the following command:\n\n   ```\n   pip install pytailwindcss\n   ```\n\n2. [Optional] Preinstall `tailwindcss` binary by running the following command:\n\n   ```\n   tailwindcss_install\n   ```\n\n   If you skip this step, the binary will be downloaded on the first run of `tailwindcss` command.\n\n3. The `tailwindcss` command should now be available in your terminal. Try to run it:\n\n   ```\n   tailwindcss\n   ```\n\n   If the installation was successful, you should see the message about binary being downloaded on the first run. When download is complete, you should see the help output for the `tailwindcss` command. Use `tailwindcss`\n   to create a new project or work with an existing *Tailwind CSS* project.\n\n4. Let's create a new project. Go to the directory where you want to host your *Tailwind CSS* project and initialize it\n   by running:\n\n   ```\n   tailwindcss init\n   ```\n\n   This command will create the default *tailwind.config.js* file.\n\n5. Start a watcher by running:\n\n   ```\n   tailwindcss -i input.css -o output.css --watch\n   ```\n\n6. Compile and minify your CSS for production by running:\n\n   ```\n   tailwindcss -i input.css -o output.css --minify\n   ```\n\nYou got it. Please refer to [official Tailwind documentation](https://tailwindcss.com/docs) for more information on\nusing *Tailwind CSS* and its CLI.\n\n## Caveats\n\nIt's not all roses, though. Giving up *Node.js* means you won't be able to install plugins or additional dependencies for\nyour *Tailwind CSS* setup. At the same time, that might not be a dealbreaker. You can still customize *Tailwind CSS* via\nthe *tailwind.config.js* file. And the standalone build also comes with all official *Tailwind CSS* plugins\nlike `@tailwindcss/aspect-ratio`, `@tailwindcss/forms`, `@tailwindcss/line-clamp`, and `@tailwindcss/typography`. So in\n90% of *Tailwind CSS* usage cases you should be covered, and the setup is so simplified now.\n\nHere is what the *Tailwind CSS* team says about going the standalone *Tailwind CSS* route:\n> If you\u2019re working on a project where you don\u2019t otherwise need *Node.js* or `npm`, the standalone build can be a great choice. If Tailwind was the only reason you had a package.json file, this is probably going to feel like a nicer solution.\n\n## Bugs and suggestions\n\nIf you have found a bug, please use the issue tracker on GitHub.\n\n[https://github.com/timonweb/pytailwindcss/issues](https://github.com/timonweb/pytailwindcss/issues)\n\n2021 (c) [Tim Kamanin - A Full Stack Django and Wagtail Developer](https://timonweb.com)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Standalone Tailwind CSS CLI, installable via pip. Use Tailwind CSS without Node.js.",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/timonweb/pytailwindcss"
    },
    "split_keywords": [
        "cli",
        "tailwind",
        "css"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab51a5142efe05873e947a71389ca86572866692ca01113037f99dd009cb0f55",
                "md5": "4bc1aecbe21e2a853c6ad503a6003453",
                "sha256": "30e7bd3b78de19a39a7e66329db02d393ee540f010924397b4d780e85041fae4"
            },
            "downloads": -1,
            "filename": "pytailwindcss-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4bc1aecbe21e2a853c6ad503a6003453",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 7288,
            "upload_time": "2023-06-23T21:23:33",
            "upload_time_iso_8601": "2023-06-23T21:23:33.855126Z",
            "url": "https://files.pythonhosted.org/packages/ab/51/a5142efe05873e947a71389ca86572866692ca01113037f99dd009cb0f55/pytailwindcss-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f35591e655cfbd8e18a777cae3bdd91be02a85fa69e29a4685ab92a87b2ec8cd",
                "md5": "f8358a998b3a72f4e26bf69ea286c6fc",
                "sha256": "112718583a33f42c57b2718270dd0e0605574da0023cab4829fad3a98ebe450b"
            },
            "downloads": -1,
            "filename": "pytailwindcss-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f8358a998b3a72f4e26bf69ea286c6fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 5686,
            "upload_time": "2023-06-23T21:23:35",
            "upload_time_iso_8601": "2023-06-23T21:23:35.225269Z",
            "url": "https://files.pythonhosted.org/packages/f3/55/91e655cfbd8e18a777cae3bdd91be02a85fa69e29a4685ab92a87b2ec8cd/pytailwindcss-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-23 21:23:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "timonweb",
    "github_project": "pytailwindcss",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pytailwindcss"
}
        
Elapsed time: 0.08039s