Python driver for H2O Q / Telesync Realtime Apps
Project description
Telesync is a lightweight library 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.
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.
Installing
Install and update using pip:
pip install -U telesync
Hello world
hello.py:
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.sync()
Run hello.py:
$ python hello.py
Links
Website: https://www.h2o.ai/h2o-q/
Releases: https://pypi.org/project/telesync/
Issue tracker: https://github.com/h2oai/telesync/issues
Change Log
- v0.0.5
- Added
Add configure() API to configure environment before launching.
- v0.0.4
- Added
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().
- Changed
Apps now lauch in unicast mode by default instead of broadcast mode.
- v0.0.3
- Added
Make Expando data structure available for apps.
- v0.0.2
Initial version
- v0.0.1
Package stub
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file telesync-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: telesync-0.0.5-py3-none-any.whl
- Upload date:
- Size: 41.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b29337c762fd71e9c64dd994a4156da300b6e7129c325d1f78bd12578163a82b |
|
MD5 | c6c0e5ae29c70b072a107738a4c2a8f6 |
|
BLAKE2b-256 | 2b54e45f50ba25ef103663485667420d1220fe23983bad3e477cb02257230dde |