Skip to main content

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 @component functions per file
  • ✅ Supports multiple return blocks (in if/else/loop branches)
  • ✅ Converts .x.py files 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")
  • src is the folder containing your .x.py files.
  • dist/build is 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)

Source distribution for lilliepy-tags 1.0.0
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)

Table of built distributions (wheels) for lilliepy-tags 1.0.0
File Interpreter ABI Platform Actions
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

Release files / lilliepy_tags-1.0.0.tar.gz

Download URL lilliepy_tags-1.0.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b84c1f72072b5ff71c0f63bfc5b8e36294cd2564849da037c1c6c7eaed6690b8
BLAKE2b-256 checksum
How to use checksums
39c4d01b52713830cae8971ae507c22fb25add58dad5f4d3c96aebb2b3e7bca8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / lilliepy_tags-1.0.0-py3-none-any.whl

Download URL lilliepy_tags-1.0.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b721890c44cc3a09a09181e5abca70658a2523bd21a16200ac7c1b3e3ef61308
BLAKE2b-256 checksum
How to use checksums
f64eab75e688b1957ecc89ebaaf3e7715d9eb02aa6fc8ed6a40169182bcd8058
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

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.

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