Skip to main content

Tailwind CSS classes processor

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tailwind_processor-2.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tailwind_processor-2.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file tailwind_processor-2.0.1.tar.gz.

File metadata

  • Download URL: tailwind_processor-2.0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for tailwind_processor-2.0.1.tar.gz
Algorithm Hash digest
SHA256 5112206f15c7247a3901faf4b2603278d131f8ca0ab9f976bf97a2cd442a9ad9
MD5 b8212bd9eb703c5da111452a6794bb92
BLAKE2b-256 33190d0030272d7d046850c9a964a51a7e8d506e4e16d13de0eb6d5a5ea73f8f

See more details on using hashes here.

File details

Details for the file tailwind_processor-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tailwind_processor-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cc1301e18a51ffb961319f8afd49af759b5037d6ac53e7dcd98f8bc3aedae1e4
MD5 37f4643eeb18b3345cdd9d583a664d81
BLAKE2b-256 e16886fe76d0021f882a8eb273fa3a40584dcf9813a55635f9656c53b345ea43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page