Internal client of trame
Project description
trame-client is the generic single page application that come with trame. trame-client provides the infrastructure on the client-side (browser) to connect to a trame server, synchronize its state with the server, make method call, load dynamically components and feed a dynamic template provided by the server.
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-client can be installed with pip:
pip install --upgrade trame-client
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.
License
trame-client is made available under the MIT License. For more details, see LICENSE This license has been chosen to match the one use by Vue.js which is instrumental for making that library possible.
Community
Trame | Discussions | Issues | Contact Us
Enjoying trame?
Share your experience with a testimonial or with a brand approval.
Runtime configuration
Trame client is the JS core of trame and can be tuned by url parameters. The table below list which parameters we process and how they affect the client.
enableSharedArrayBufferServiceWorker |
When set this will load an extra script that will use a service worker to enable SharedArrayBuffer |
ui |
Layout name selector. When a trame app define several layout with different name, you can choose which layout should be displayed |
remove |
By default the URL will be cleaned from trame config parameters (sessionURL, sessionManagerURL, secret, application) but if additional parameters should be removed as well but used in the launcher config, this can be achieved by adding a &remove=param1,param2. |
The table below leverage environment variables, mainly for the Jupyter Lab context and the iframe builder configuration.
TRAME_JUPYTER_ENDPOINT |
Used by the trame-jupyter-extension |
TRAME_JUPYTER_WWW |
Used by the trame-jupyter-extension |
JUPYTERHUB_SERVICE_PREFIX |
Used to figure out server proxy path for iframe builder |
HOSTNAME |
When “jupyter-hub-host” is used as iframe builder, the hostname will be lookup using that environment variable |
TRAME_IFRAME_BUILDER |
Specify which iframe builder should be used. If not provided we try to do some smart detection |
TRAME_IPYWIDGETS_DISABLE |
Skip any iPyWidget iframe wrapping |
Development
Build client side code base
cd vue[2,3]-app
npm install
npm run build # build trame client application
cd -
JavaScript dependency
This Python package bundle the following Vue.js libraries. For client_type="vue2", it exposes vue@2.7.16 and for client_type="vue3", it exposes vue@3.5.13. If you would like us to upgrade any of those dependencies, please reach out.
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_client-3.11.2.tar.gz.
File metadata
- Download URL: trame_client-3.11.2.tar.gz
- Upload date:
- Size: 240.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98b3f09d0fbdb09cd29eac61c945a76dcad4a08cfb4843abce5a148fd6fc7316
|
|
| MD5 |
74727da34676176b00ae866ef7089e8f
|
|
| BLAKE2b-256 |
aea5febe01d66c7524882c5f4f3e75affbf112896b660a8a53ddc505eeaa57f7
|
Provenance
The following attestation bundles were made for trame_client-3.11.2.tar.gz:
Publisher:
test_and_release.yml on Kitware/trame-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_client-3.11.2.tar.gz -
Subject digest:
98b3f09d0fbdb09cd29eac61c945a76dcad4a08cfb4843abce5a148fd6fc7316 - Sigstore transparency entry: 592556035
- Sigstore integration time:
-
Permalink:
Kitware/trame-client@852a4615f7821e61f1e4c24ab4fe44579c39cd3f -
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@852a4615f7821e61f1e4c24ab4fe44579c39cd3f -
Trigger Event:
push
-
Statement type:
File details
Details for the file trame_client-3.11.2-py3-none-any.whl.
File metadata
- Download URL: trame_client-3.11.2-py3-none-any.whl
- Upload date:
- Size: 245.1 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 |
f4d9364ea89cdb9d128fcebe4ab5034e5c20662feb5fee858cfe2eca3dea4771
|
|
| MD5 |
7a6a9dc58742acc17a292b5b6e55c4d0
|
|
| BLAKE2b-256 |
0f3bdefac846c42dfaf27090d8294fbda0cbbeeb2e80b4b651841cc0e8f35d34
|
Provenance
The following attestation bundles were made for trame_client-3.11.2-py3-none-any.whl:
Publisher:
test_and_release.yml on Kitware/trame-client
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_client-3.11.2-py3-none-any.whl -
Subject digest:
f4d9364ea89cdb9d128fcebe4ab5034e5c20662feb5fee858cfe2eca3dea4771 - Sigstore transparency entry: 592556040
- Sigstore integration time:
-
Permalink:
Kitware/trame-client@852a4615f7821e61f1e4c24ab4fe44579c39cd3f -
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@852a4615f7821e61f1e4c24ab4fe44579c39cd3f -
Trigger Event:
push
-
Statement type: