Internal server side implementation of trame
Project description
trame-server is the server implementation of trame. This Python library provide the server implementation of the shared state and controller along with the definition of the web server. The web server aims to be flexible so it can be use within a Jupyter environment or as a standalone desktop application.
This package is not supposed to be used by itself but rather should come as a dependency of trame. For any specificity, please refer to the trame documentation.
Installing
trame-server can be installed with pip:
pip install --upgrade trame-server
Usage
The Trame Tutorial is the place to go to learn how to use the library and start building your own application.
The API Reference documentation provides API-level documentation.
Environments variables
TRAME_LOG_NETWORK : Path to log file for capturing network exchange. (default: None)
TRAME_WS_MAX_MSG_SIZE : Maximum size in bytes of any ws message. (default: 10MB)
TRAME_WS_HEART_BEAT : Time in second before assuming the server is non-responsive. (default: 30s)
TRAME_DESKTOP_DEBUG : If defined it will allow user to inspect the web content in desktop mode
TRAME_SERVER : If set to true, this will prevent browser from opening by default
Life cycle callbacks
Life cycle events are directly managed on the application controller and are prefixed with on_*.
on_server_start : Executed at server.start() call while passing the server as argument.
on_server_bind : WSLinkServer is getting bound to trame so you can attach your own routes. Its instance will be passed as argument to callback.
on_server_ready : All protocols initialized and available for client to connect
on_client_connected : Connection established to server
on_client_exited : Linked to browser “beforeunload” event
on_server_exited : Trame is exiting its event loop
on_server_reload : If callback registered it can be use to hot_reload methods like the UI.
License
trame-server is made available under the Apache License, Version 2.0. For more details, see LICENSE
Community
Trame | Discussions | Issues | RoadMap | Contact Us
Enjoying trame?
Share your experience with a testimonial or with a brand approval.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file trame-server-3.2.1.tar.gz
.
File metadata
- Download URL: trame-server-3.2.1.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.11.1 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.66.5 importlib-metadata/8.5.0 keyring/25.4.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c8d774b2127aa0c1850bbc7e4ef9f3e079aef1d8e654db9a78a0eec8c6cd48 |
|
MD5 | d9dc940f8e4f43c19c7615ce7ef58e15 |
|
BLAKE2b-256 | 6d33a4eb284f3ab64f59e5e41791265ad3dda3368623dd7825c2c3270514030b |
File details
Details for the file trame_server-3.2.1-py3-none-any.whl
.
File metadata
- Download URL: trame_server-3.2.1-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.11.1 readme-renderer/44.0 requests/2.32.3 requests-toolbelt/1.0.0 urllib3/2.2.3 tqdm/4.66.5 importlib-metadata/8.5.0 keyring/25.4.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 978a044b3102f1ab9e305d1397cfc45e97614b8c9c43166247c1162881215cbf |
|
MD5 | 4c434ef51461745c856c25de47b21ddf |
|
BLAKE2b-256 | 4b2a36e8d97810773a87a2eb5b32c68acd7be282cac5dfaf5ef750ef57438177 |