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

Uploaded Python 3

File details

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

File metadata

  • Download URL: blu_react-0.0.1rc1.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.1rc1.tar.gz
Algorithm Hash digest
SHA256 128f4ac938a91b4c768fe0b0a9ca094da2779aaf4af37495498b4a10d3874f29
MD5 21bbe2db17c542cb0e439537d03d71bf
BLAKE2b-256 02fd5adf73f8bd31d738fc94116cf2a3e2c2b0faa7d43070cf4f45426d3b4fdb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: blu_react-0.0.1rc1-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.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 81f0f1967087b49316a13503c081aa7fcf7ab66f778d6aa41f1ea6e55eaca6d3
MD5 dcef96e5fd046ba8583dbcf38cee8ec9
BLAKE2b-256 280d60808cbdd4f9ee2408c0ec7ad84c720cc7d4f37a2860eb8513e5b22f088f

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