Project: h2o-wave

Python driver for H2O Wave Realtime Apps

Project Details

Latest version
1.0.0
Home Page
PyPI Page
https://pypi.org/project/h2o-wave/

Project Popularity

PageRank
0.004580028832249178
Number of downloads
70644

H2O Wave

H2O Wave is a lightweight software stack for programming interactive web applications entirely in Python (no HTML/Javascript/CSS required).

It is designed to make it fast, fun and easy to build low-latency, realtime, collaborative, web-based applications. It ships batteries-included with a suite of form and data visualization components for rapidly prototyping analytical and decision-support applications.

Wave's components work in conjunction with the Wave relay server that facilitates realtime state synchronization between Python and web browsers.

Installing

Install and update using pip_:

.. code-block:: text

pip install -U h2o-wave

Hello world

hello.py:

.. code-block:: python

from h2o_wave import main, app, Q, ui


@app('/')
async def serve(q: Q):
    q.page['hello'] = ui.markdown_card(
        box='1 1 3 3',
        title='Hello world!',
        content='Welcome to Wave!'
    )
    await q.page.save()

Run hello.py:

.. code-block:: text

$ wave run hello.py

Links

  • Website: https://wave.h2o.ai/
  • Releases: https://pypi.org/project/h2o-wave/
  • Code: https://github.com/h2oai/wave
  • Issue tracker: https://github.com/h2oai/wave/issues

.. _pip: https://pip.pypa.io/en/stable/quickstart/