# 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>")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/asiffer/retailwind",
"name": "retailwind",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.11,<4.0",
"maintainer_email": "",
"keywords": "tailwind,reverse",
"author": "Alban Siffer",
"author_email": "alban.siffer@irisa.fr",
"download_url": "https://files.pythonhosted.org/packages/3e/cc/69c342edc8ec865caef379f72e997addaddb407243a24b127202f3f14c3f/retailwind-0.1.0.tar.gz",
"platform": null,
"description": "# Retailwind\n\nReverse obfuscated tailwind classes\n\n![app](/assets/retailwind.gif)\n\n## Install\n\n```shell\npip install retailwind\n```\n\n## Usage\n\nYou 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).\n\n### CLI\n\nJust give you r input after the `-r`\u00a0flag.\n\n```shell\nretailwind -c style.css -r yz\n```\n\n### Interactive\n\nUse the `-i`\u00a0flag, it will start the interactive app.\n\n```shell\nretailwind -c style.css -i\n```\n\n![app](/assets/retailwind.png)\n\nYou 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.\n\n### Library\n\n```python\nfrom retailwind.translator import Translator\n\n# init the translator with the stylesheet\ntr = Translator(\"/path/to/styles.css\")\n# run on raw class\ntr.raw(\"yz\")\n# run on html fragment\ntr.html(\"<div class='kw lx yz aai'>retailwind</div>\")\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Reverse obfuscated tailwind classes",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/asiffer/retailwind",
"Repository": "https://github.com/asiffer/retailwind"
},
"split_keywords": [
"tailwind",
"reverse"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "22904ccdbd0d464e69c34feac57e7f28690888e385c14661b0e1314d86f9c76d",
"md5": "e0779633b054b7cd87ec37f6791527c4",
"sha256": "30d699cff0d20b1cb35f40bf3b467ea92b81b0339a231653d3c673adc574f95b"
},
"downloads": -1,
"filename": "retailwind-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "e0779633b054b7cd87ec37f6791527c4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11,<4.0",
"size": 178946,
"upload_time": "2023-11-13T10:15:22",
"upload_time_iso_8601": "2023-11-13T10:15:22.640795Z",
"url": "https://files.pythonhosted.org/packages/22/90/4ccdbd0d464e69c34feac57e7f28690888e385c14661b0e1314d86f9c76d/retailwind-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3ecc69c342edc8ec865caef379f72e997addaddb407243a24b127202f3f14c3f",
"md5": "aadbb4cd858a0010ba5e3d31f8f5ae19",
"sha256": "17eb42d93d8479833b161e9e8e2176efc5d7ca52722327ebd4baf9ec5d80c16e"
},
"downloads": -1,
"filename": "retailwind-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "aadbb4cd858a0010ba5e3d31f8f5ae19",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11,<4.0",
"size": 173955,
"upload_time": "2023-11-13T10:15:25",
"upload_time_iso_8601": "2023-11-13T10:15:25.212629Z",
"url": "https://files.pythonhosted.org/packages/3e/cc/69c342edc8ec865caef379f72e997addaddb407243a24b127202f3f14c3f/retailwind-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-13 10:15:25",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "asiffer",
"github_project": "retailwind",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "retailwind"
}