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_error : JS error forwarded (msg:str) on the python
on_exception : Server exception occurred when interacting with the UI. The exception instance is provided as arg.
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 | 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trame_server-3.10.0.tar.gz.
File metadata
- Download URL: trame_server-3.10.0.tar.gz
- Upload date:
- Size: 39.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c341de976f758ff8e6076991e7f30be180384d4f386cf29aefa3915b801d118
|
|
| MD5 |
301fde5b3a0c7e1f580061e76840f83c
|
|
| BLAKE2b-256 |
5254e5a974c09f94bd795c20c311405ffa132f189ac609211305552d238a46ad
|
Provenance
The following attestation bundles were made for trame_server-3.10.0.tar.gz:
Publisher:
test_and_release.yml on Kitware/trame-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_server-3.10.0.tar.gz -
Subject digest:
0c341de976f758ff8e6076991e7f30be180384d4f386cf29aefa3915b801d118 - Sigstore transparency entry: 820411679
- Sigstore integration time:
-
Permalink:
Kitware/trame-server@1570c668943af40a835af9d2241b8b1b8c9e61a7 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Kitware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_release.yml@1570c668943af40a835af9d2241b8b1b8c9e61a7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file trame_server-3.10.0-py3-none-any.whl.
File metadata
- Download URL: trame_server-3.10.0-py3-none-any.whl
- Upload date:
- Size: 44.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb282f6bc6fa8fdbb2c65b8e6d22e088a27b56fe0b7a12f07cf2d9ea546bd935
|
|
| MD5 |
9b1e8b07a1fb04cf263270e5ec107e1c
|
|
| BLAKE2b-256 |
563ad895d2069c9bf9288efde97aaa22845d3c711a7af031605863ac4019b7fc
|
Provenance
The following attestation bundles were made for trame_server-3.10.0-py3-none-any.whl:
Publisher:
test_and_release.yml on Kitware/trame-server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_server-3.10.0-py3-none-any.whl -
Subject digest:
eb282f6bc6fa8fdbb2c65b8e6d22e088a27b56fe0b7a12f07cf2d9ea546bd935 - Sigstore transparency entry: 820411688
- Sigstore integration time:
-
Permalink:
Kitware/trame-server@1570c668943af40a835af9d2241b8b1b8c9e61a7 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/Kitware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_release.yml@1570c668943af40a835af9d2241b8b1b8c9e61a7 -
Trigger Event:
push
-
Statement type: