trame-server 3.10.0


pip install trame-server

  Latest version

Released: Jan 13, 2026

Project Links

Meta
Author: Kitware Inc.
Requires Python: >=3.7

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Web Environment

License
  • OSI Approved :: Apache Software License

Natural Language
  • English

Operating System
  • OS Independent

Programming Language
  • Python :: 3 :: Only

Topic
  • Software Development :: Libraries :: Application Frameworks
  • Software Development :: Libraries :: Python Modules
Test and Release Code Coverage

trame-server is the server implementation of trame. This Python library provide the server implementation of the shared state and controller along with the definition of the web server. The web server aims to be flexible so it can be use within a Jupyter environment or as a standalone desktop application.

This package is not supposed to be used by itself but rather should come as a dependency of trame. For any specificity, please refer to the trame documentation.

Installing

trame-server can be installed with pip:

pip install --upgrade trame-server

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.

Environments variables

  • TRAME_LOG_NETWORK : Path to log file for capturing network exchange. (default: None)

  • TRAME_WS_MAX_MSG_SIZE : Maximum size in bytes of any ws message. (default: 10MB)

  • TRAME_WS_HEART_BEAT : Time in second before assuming the server is non-responsive. (default: 30s)

  • TRAME_DESKTOP_DEBUG : If defined it will allow user to inspect the web content in desktop mode

  • TRAME_SERVER : If set to true, this will prevent browser from opening by default

Life cycle callbacks

Life cycle events are directly managed on the application controller and are prefixed with on_*.

  • on_server_start : Executed at server.start() call while passing the server as argument.

  • on_server_bind : WSLinkServer is getting bound to trame so you can attach your own routes. Its instance will be passed as argument to callback.

  • on_server_ready : All protocols initialized and available for client to connect

  • on_client_connected : Connection established to server

  • on_client_exited : Linked to browser “beforeunload” event

  • on_server_exited : Trame is exiting its event loop

  • on_error : JS error forwarded (msg:str) on the python

  • on_exception : Server exception occurred when interacting with the UI. The exception instance is provided as arg.

  • on_server_reload : If callback registered it can be use to hot_reload methods like the UI.

License

trame-server is made available under the Apache License, Version 2.0. For more details, see LICENSE

Community

Trame | Discussions | Issues | Contact Us

https://zenodo.org/badge/410108340.svg

Enjoying trame?

Share your experience with a testimonial or with a brand approval.

3.10.0 Jan 13, 2026
3.9.0 Dec 13, 2025
3.8.1 Oct 30, 2025
3.8.0 Oct 22, 2025
3.7.0 Oct 20, 2025
3.6.3 Oct 06, 2025
3.6.2 Oct 02, 2025
3.6.1 Sep 19, 2025
3.6.0 Aug 04, 2025
3.5.0 Jul 07, 2025
3.4.2 Jun 04, 2025
3.4.0 Mar 10, 2025
3.3.0 Jan 12, 2025
3.2.7 Jan 07, 2025
3.2.6 Jan 07, 2025
3.2.5 Jan 04, 2025
3.2.4 Dec 30, 2024
3.2.3 Sep 19, 2024
3.2.2 Sep 19, 2024
3.2.1 Sep 18, 2024
3.2.0 Sep 16, 2024
3.1.2 Sep 03, 2024
3.1.1 Sep 03, 2024
3.1.0 Aug 16, 2024
3.0.3 Jul 02, 2024
3.0.2 Jun 19, 2024
3.0.1 May 30, 2024
3.0.0 Apr 10, 2024
2.17.3 Apr 02, 2024
2.17.2 Feb 16, 2024
2.17.1 Feb 16, 2024
2.17.0 Feb 16, 2024
2.16.1 Feb 09, 2024
2.16.0 Jan 29, 2024
2.15.0 Jan 09, 2024
2.14.0 Jan 01, 2024
2.13.1 Dec 08, 2023
2.13.0 Dec 08, 2023
2.12.1 Oct 31, 2023
2.12.0 Sep 28, 2023
2.11.7 Jul 20, 2023
2.11.5 Jul 14, 2023
2.11.4 Jun 09, 2023
2.11.3 Jun 09, 2023
2.11.2 May 24, 2023
2.11.1 May 24, 2023
2.11.0 Apr 25, 2023
2.10.0 Mar 27, 2023
2.9.1 Feb 15, 2023
2.9.0 Feb 08, 2023
2.8.1 Jan 27, 2023
2.8.0 Jan 21, 2023
2.7.2 Jan 20, 2023
2.7.1 Jan 20, 2023
2.7.0 Jan 09, 2023
2.6.1 Dec 10, 2022
2.6.0 Dec 06, 2022
2.5.1 Nov 09, 2022
2.5.0 Oct 27, 2022
2.4.1 Oct 26, 2022
2.4.0 Oct 24, 2022
2.3.0 Oct 20, 2022
2.2.1 Sep 27, 2022
2.2.0 Sep 22, 2022
2.1.6 Aug 12, 2022
2.1.5 Aug 10, 2022
2.1.4 Jun 14, 2022
2.1.3 Jun 10, 2022
2.1.2 Jun 10, 2022
2.1.1 Jun 06, 2022
2.1.0 Jun 04, 2022
2.0.2 May 30, 2022
2.0.1 May 27, 2022
2.0.0rc9 May 24, 2022
2.0.0rc8 May 23, 2022
2.0.0rc7 May 23, 2022
2.0.0rc6 May 23, 2022
2.0.0rc5 May 23, 2022
2.0.0rc4 May 18, 2022
2.0.0rc3 May 13, 2022
2.0.0rc2 May 12, 2022
2.0.0rc1 May 06, 2022

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
wslink (<3,>=2.5)
more-itertools