skillfed

trame-server

Internal server side implementation of trame

trame-server v3.14.0 921.6K downloads/30d#4,717 on PyPI
Permissive license Apache License 2.0 Active released

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-server

uv

uv add trame-server

poetry

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 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

Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyTopic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python Modules

Tags

trame server implementationpython web application frameworkshared state management serverinteractive python ui serverwebsocket application serverjupyter-compatible app serverdesktop web app framework
web-frameworkwebsocket-serverjupyter-compatible

More Python Modules packages