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 iteself 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.
This library specifically brings the following set of vue.js components to the core client side application. They will be available as a library on NPM to support trame integration into existing vue.js based application.
<trame-connect name="TrameConnect" :config="{}" :exclude="[]" use-url forward-errors>
<trame-server-template template-name="main" />
<trame-loading message="welcome" />
<trame-state-resolver :names="['a', 'b', 'c']" v-slot="{a, b, c, set, trame}">
<div>
<div>
A: {{ a }}
</div>
<div>
B: {{ b }}
</div>
<div>
C: {{ c }}
</div>
<br>
<button @click="trame.state.set('a', a + 1)">A+</button>
<br>
<button @click="set('a', a - 1)">A-</button>
<br>
<button>B</button>
<br>
<button>C</button>
</div>
</trame-state-resolver>
</trame-connect>
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 | RoadMap | Contact Us
Enjoying trame?
Share your experience with a testimonial or with a brand approval.
Development
Build client side code base
cd vue-app
npm i
npm run build # build trame client application
npm run build:components # build trame components for integration purpose
cd -
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
Hashes for trame_client-2.0.0rc4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01abdecde95dfbc60878e3ecb3f3f4947dff086deffe9fce02c4114ae3b823d4 |
|
MD5 | bd3a4831914165edb97ba1f6432c829d |
|
BLAKE2b-256 | 6a86133a959bb8991790952b63354b2a081cee4563ea4a4ffbe27b969389296e |