Skip to main content

Tailwind Processor

codecov

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)

Source distribution for tailwind-processor 2.0.1
File Size Uploaded
tailwind_processor-2.0.1.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tailwind-processor 2.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 release files

2.0.0

2 release files

1.2.16

2 release files

1.2.15

2 release files

1.2.14

2 release files

1.2.13

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page