Metadata-Version: 2.1
Name: retailwind
Version: 0.1.0
Summary: Reverse obfuscated tailwind classes
Home-page: https://github.com/asiffer/retailwind
License: MIT
Keywords: tailwind,reverse
Author: Alban Siffer
Author-email: alban.siffer@irisa.fr
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: rich (>=13.6.0,<14.0.0)
Requires-Dist: textual[syntax] (>=0.41.0,<0.42.0)
Project-URL: Repository, https://github.com/asiffer/retailwind
Description-Content-Type: text/markdown

# Retailwind

Reverse obfuscated tailwind classes

![app](/assets/retailwind.gif)

## Install

```shell
pip install retailwind
```

## Usage

You can either use it as a CLI tool, an interactive terminal app or a python library. In all cases, you will need to provide the stylesheet of the website that hides the tailwind classes (`-c` flag).

### CLI

Just give you r input after the `-r` flag.

```shell
retailwind -c style.css -r yz
```

### Interactive

Use the `-i` flag, it will start the interactive app.

```shell
retailwind -c style.css -i
```

![app](/assets/retailwind.png)

You can write (or paste through shift+right-click or your terminal shortcut like ctrl+shift+v) html fragments and see the translated version on the right panel.

### Library

```python
from retailwind.translator import Translator

# init the translator with the stylesheet
tr = Translator("/path/to/styles.css")
# run on raw class
tr.raw("yz")
# run on html fragment
tr.html("<div class='kw lx yz aai'>retailwind</div>")
```

