trame-server
Internal server side implementation of trame
What it is and what it does
trame-server is the server-side engine for trame, a Python framework for building interactive web applications. It handles the core infrastructure: managing shared application state, routing client-server communication over WebSocket, and running a flexible web server that works both in Jupyter notebooks and as standalone desktop applications. The package is designed as an internal component and is typically installed as a dependency of the main trame package rather than used directly.
The server exposes lifecycle callbacks (on_server_start, on_client_connected, on_error, etc.) that let you hook into application events, and supports environment variables for tuning network behavior (message size limits, heartbeat timing, debug modes). It relies on wslink for WebSocket communication and more-itertools for utility functions.
Use it for:
- Build interactive Python dashboards that run in Jupyter notebooks without leaving the notebook environment
- Create standalone desktop applications with a web UI that communicate with Python backend logic
- Develop real-time collaborative tools where multiple clients share application state managed on the server
- Prototype scientific or data-visualization applications with live Python computation and browser-based rendering
- Deploy web-based tools that need bidirectional communication between browser and Python without writing separate backend code
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
trame-server provides the server-side runtime for trame applications, managing shared state, client-server communication, and web server hosting for interactive Python applications.
Yes, if you are building a trame application. Install it as a dependency of trame rather than directly. The package is actively maintained, has low installation friction, uses a permissive license, carries no known vulnerabilities, and is positioned in the top 5000 PyPI packages by download volume. It is production-stable and suitable for both prototyping and deployment.
Install
trame-server on PyPI
pip
pip install trame-serveruv
uv add trame-serverpoetry
poetry add trame-serverInstalling trame-server
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with a release 6 days ago. Requires Python 3.10 or later and three runtime dependencies (more-itertools, trame-common, wslink).
License in practice
Licensed under Apache License 2.0 (permissive). You may use, modify, and distribute this package freely in commercial and private projects, provided you include the license notice.
Quickstart
pip install trame-server
from trame.app import Trame
app = Trame()
app.server.start()
Requires Python 3.10 or later. Intended as a dependency of trame rather than direct use; consult trame documentation for full application setup.
Verify before relying
- Whether trame-server can be used standalone or only as a transitive dependency of the trame package
- Performance characteristics under high client load or large message sizes
- Compatibility with specific Jupyter environments or versions
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — more-itertools, trame-common, wslink |
| Maintenance | actively maintained — 6 days since the last release |
| First released | |
| Downloads | 921,567/month — #4,717 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: trame_server-3.14.0-py3-none-any.whl
Keywords: Application, Framework, Interactive, Python, Web
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
trameTrame is a Python web framework for building…
permissive · top 5,000 on PyPI
trame-clienttrame-client is the browser-side runtime for…
permissive · top 5,000 on PyPI
trame-componentsProvides Vue.js utility widgets and helper…
permissive · top 15,000 on PyPI
trame-vuetifyProvides Material Design UI components…
permissive · top 5,000 on PyPI
trame-vtkProvides VTK and ParaView visualization widgets…
permissive · top 5,000 on PyPI
trame-routerAdds multi-page navigation to trame…
permissive · top 15,000 on PyPI
trame-commonProvides shared helper functions, decorators,…
permissive · top 5,000 on PyPI
websocket-clientwebsocket-client provides a Python WebSocket…
permissive · top 1,000 on PyPI
bottle-websocketAdds WebSocket support to the Bottle web…
permissive · top 15,000 on PyPI
python-engineioPython implementation of the Engine.IO realtime…
permissive · top 1,000 on PyPI