Tailwind Processor
This is a Python package that processes Tailwind CSS classes into a single raw CSS string. It's super modular and simple, you can just copy the class directly and use it in your code. Just make sure to install pytailwindcss first.
It uses GO style error handling.
Installation
pip install tailwind-processor
Usage
from tailwind_processor import TailwindProcessor
tp = TailwindProcessor()
result, err = tp.process(["text-red-500", "h-dvh"])
if err:
# Or do another thing
raise err
file_content = textwrap.dedent("""
<div class="text-red-500 h-dvh">
Hey!
</div>
""")
result, err = tp.process_file_str(file_content)
if err:
# Or do another thing
raise err
Metadata
Release files for tailwind-processor 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tailwind_processor-2.0.1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tailwind_processor-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.3 kB
Release files / tailwind_processor-2.0.1.tar.gz
| Download URL | tailwind_processor-2.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5112206f15c7247a3901faf4b2603278d131f8ca0ab9f976bf97a2cd442a9ad9
|
|
BLAKE2b-256 checksum How to use checksums |
33190d0030272d7d046850c9a964a51a7e8d506e4e16d13de0eb6d5a5ea73f8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.9
|
Release files / tailwind_processor-2.0.1-py3-none-any.whl
| Download URL | tailwind_processor-2.0.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cc1301e18a51ffb961319f8afd49af759b5037d6ac53e7dcd98f8bc3aedae1e4
|
|
BLAKE2b-256 checksum How to use checksums |
e16886fe76d0021f882a8eb273fa3a40584dcf9813a55635f9656c53b345ea43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.9
|