Lilliepy-Tags
A JSX-like transpiler for ReactPy projects written in Python. This tool allows you to write familiar JSX-style syntax inside Python component return blocks, and transpile them into proper ReactPy functional calls.
📦 Features
- ✅ Supports nested tags
- ✅ Supports
{expression}embedding inside text or tags - ✅ Processes multiple
@componentfunctions per file - ✅ Supports multiple return blocks (in if/else/loop branches)
- ✅ Converts
.x.pyfiles in a folder into clean Python ReactPy code - ✅ Outputs to a
dist/folder under a custom name
📂 Example Input (test.x.py)
from reactpy import component, run, html
var = "Hello, world!"
@component
def App():
return (
<html.h1 id="greeting" class="main">
{var}
</html.h1>
)
run(App)
📦 Output (in dist/build/test.x.py)
from reactpy import component, run, html
var = "Hello, world!"
@component
def App():
return (
html.h1(
{
"id": "greeting",
"class": "main",
},
var
)
)
run(App)
📖 Usage
📦 Install dependencies (if any)
Currently no external pip dependencies needed.
🏃 Run the transpiler
from lilliepy_tags import Lilliepy_Tags
process_folder("src", "dist/build")
srcis the folder containing your.x.pyfiles.dist/buildis your chosen output directory.
Metadata
Release files for lilliepy-tags 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lilliepy_tags-1.0.0.tar.gz | 4.1 kB | Without provenance | Details for lilliepy_tags-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lilliepy_tags-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for lilliepy_tags-1.0.0-py3-none-any.whl |
Total release size: 8.4 kB
Security for lilliepy-tags 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.