--- id: trame-server version: "3.14.0" license: Apache License 2.0 license_treatment: permissive maintenance: active --- # trame-server — Internal server side implementation of trame License: permissive · Maintenance: active · Downloads: 921.6K/mo ## 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 above — 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 pip install trame-server uv add trame-server poetry add trame-server ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 921.6K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags trame server implementation, python web application framework, shared state management server, interactive python ui server, websocket application server, jupyter-compatible app server, desktop web app framework, web-framework, websocket-server, jupyter-compatible [View on SkillFed](https://skillfed.io/packages/trame-server) · [View on PyPI](https://pypi.org/project/trame-server/)