Reactpy Html String Compiler
compiles ReactPy Components into a HTML String
Why would you use this?
you could use the converted html string in flask or other templating engines
How to use this?
this module has only 1 function, compiler(component : Reactpy.Types.Component) -> str, which takes in a reactpy component and returns a string
from reactpy import component, html
from reactpy_html_string_compiler import compiler
from flask import Flask # or any other backend
@component
def header():
return html.h1("Hello, World", {"id": "header"})
# utilizing component
app = Flask(__name__)
@app.route("/")
def index():
return compiler(header()) # -> <h1 id="header">Hello, World</h1>
app.run('0.0.0.0', 3000)
dependencies
Metadata
Release files for reactpy-html-string-compiler 0.3.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 |
|---|---|---|---|---|
| reactpy_html_string_compiler-0.3.0.tar.gz | 2.6 kB | Without provenance | Details for reactpy_html_string_compiler-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reactpy_html_string_compiler-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for reactpy_html_string_compiler-0.3.0-py3-none-any.whl |
Total release size: 5.6 kB
Release files / reactpy_html_string_compiler-0.3.0.tar.gz
| Download URL | reactpy_html_string_compiler-0.3.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a802b0d517b85bb05766c8cf84e52fff8f809bae80682d03c1bcb45b015ea570
|
|
BLAKE2b-256 checksum How to use checksums |
16b60ecff8dbdafaad9b5bf0642016e58299b2d2c07416e6e9884110305f821d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.1
|
Release files / reactpy_html_string_compiler-0.3.0-py3-none-any.whl
| Download URL | reactpy_html_string_compiler-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f261eeba1a17a0c1228888479abf284d5dee5a7baf9aa3811895c4a8d0f11c6
|
|
BLAKE2b-256 checksum How to use checksums |
1737404796e4db6ebe36da42c63a1f1ece58e149daa218a3d637b869a8bd818e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.1
|
Security for reactpy-html-string-compiler 0.3.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.