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

Documentation

Documentation available on readthedocs.io {TODO add link here.}

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.1.tar.gz (835.9 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.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: blu_react-0.0.1.tar.gz
  • Upload date:
  • Size: 835.9 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.1.tar.gz
Algorithm Hash digest
SHA256 cc4613fd038857a9d928c1bea96569a9cf2108149831354c9979d9b26cdfb1f4
MD5 3f5e73f08b1a10b97e0ae67f94f9a19b
BLAKE2b-256 dc9f2128968e5923f4f3e0d5a4b9272a884ba6cd6d54e509280250a2ccc0e865

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blu_react-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 948f1603a5df4a916f8ba22c48c47541d79428fe5ddcb0649d5cd9fa5f0bbf81
MD5 4ca476d7af602c40eb9d04d66fbec2ca
BLAKE2b-256 86f2e9fa2519957810eacdbeb4958ade4ed60f79f61dedab0c7d0e330f60dec1

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