Registry / web-framework / trame-components

trame-components

JSON →
library2.5.0pypypi✓ verified 84d ago

Core components for trame widgets, providing a set of reusable UI components for building web-based scientific visualization applications. Current version 2.5.0 is under active development with frequent releases.

pip install trame-components
INSTALL
IMPORT
SIG · TRAME-COMPONENTS
T
trame-components
web-frameworkpythonv2.5.0
Install
1.7s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_version
from trame_components import get_version
from trame.widgets.vuetify3 import Vuetify3

Minimal trame app with Vuetify3 components

from trame.app import get_server from trame.ui.vuetify3 import SinglePageLayout from trame.widgets.vuetify3 import VBtn, VTextField server = get_server() state, ctrl = server.state, server.controller with SinglePageLayout(server) as layout: with layout.content: VTextField(v_model=('name', 'World'), label='Name') VBtn(click='alert(`Hello ${name}`)', text='Greet') server.start()
Debug
Known issues
breakingtrame-components v2.0 broke all Vuetify2 imports. Use `trame.widgets.vuetify3` instead of `vuetify2`.
fix
Replace `from trame.widgets.vuetify2 import ...` with `from trame.widgets.vuetify3 import ...`
affects: >=2.0.0
deprecatedThe `trame.html` and `trame.core` modules are deprecated. Use explicit widget imports (e.g., `from trame.widgets.vuetify3 import VContainer`).
fix
Migrate to direct widget imports from `trame.widgets.*`
affects: >=1.5.0
gotchaState variables must be defined before use in templates. Accessing `state.some_var` without initialising it in the state dictionary will raise an error.
fix
Always initialise state: `state.some_var = 'default'` before using in v-model or expressions.
affects: all
Upgrade
Version history
2.5.0latest on PyPI · released May 30, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
trame-components — pip install trame-components · libregistry