Python driver for H2O Q / Telesync Realtime Apps
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.
Telesync’s components work in conjunction with the Telesync relay server that facilitates realtime state synchronization between Python and web browsers.
The Telesync relay server is built into H2O.ai Q for enterprise-grade hosting.
Install and update using pip:
pip install -U telesync
from telesync import site, ui # Access the web page at http://localhost:55555/demo page = site['/demo'] # Add some content. page['example'] = ui.markdown_card( box='1 1 2 2', title='Hello World!', content='And now for something completely different.', ) # Save the page page.save()
$ python hello.py
Issue tracker: https://github.com/h2oai/telesync/issues
Download API: q.download().
Vega-lite support: ui.vega_card().
Context menu support to all cards.
refresh attribute on meta_card allows static pages to stop receiving live updates.
Passing -debug when starting server displays site stats at /_d/site.
Drag and drop support for file upload component.
Template expression support for markdown cards.
All APIs and examples documented.
All 110 examples now ship with the Sphinx documentation.
Documentation now ships with release download.
API consistency: ui.vis() renamed to ui.plot().
All stats cards now have descriptive names.
API consistency: ui.mark.mark renamed to ui.mark.type.
API consistency: page.sync() and page.push() renamed to page.save().
ui.dashboard_card() and ui.notebook_card().
Log network traffic when logging is set to debug mode.
Capture and display unhandled exceptions on the UI.
Routing using location hash.
Upload API: q.upload().
q.session renamed to q.user
Add configure() API to configure environment before launching.
Multi-user and multi-client support: launch apps in multicast or unicast modes in addition to broadcast mode.
Client-specific data can now be stored and accessed via q.client, similar to q.session and q.app.
Simpler page referencing: import site can be used instead of site = Site().
Apps now lauch in unicast mode by default instead of broadcast mode.
Make Expando data structure available for apps.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.