Skip to main content

A full stack React framework for Python

Project description

Blu

Blu is still in early testing and should not be used in production applications.

A full stack React framework for Python.

from blu import client
from blu.html import html, head, body, h1, button

__client__ = True


def __page__():
    return html[
        head,
        body[
            h1[
                ClickCounter
            ]
        ]
    ]
    return ClickCounter


@client
def ClickCounter():
    count, set_count = use_state(0)

    def handle_click(e):
        set_count(count + 1)
    
    return button(onClick=handle_click)[f"Clicks: {count}"]

Installation

pip install -U blu-react

Documentation

Documentation available at readthedocs.io.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blu_react-0.0.2.tar.gz (836.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

blu_react-0.0.2-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file blu_react-0.0.2.tar.gz.

File metadata

  • Download URL: blu_react-0.0.2.tar.gz
  • Upload date:
  • Size: 836.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for blu_react-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d81c16f7f36ab3379478c01ec05a58bff0ec8d8b879506062021843d1c2a56ad
MD5 b03c07dc677e87271b9e039cecadb47b
BLAKE2b-256 adf46f1694f92e33dab08eb4add3976f0a5b712c176ee80213a6990a30329214

See more details on using hashes here.

File details

Details for the file blu_react-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: blu_react-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for blu_react-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fc7e3354f53da4e9d41eb7c02d6501fcc81dc67217d9e9d6b262addeec7fef
MD5 a1d7ac775ca9a20f5311263081483846
BLAKE2b-256 0367a37a1606090d937061c7f2a32baa454f1e0e03c2a9dfe4a56fc6aa52de2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page