trame 3.12.0


pip install trame

  Latest version

Released: Aug 18, 2025

Project Links

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

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

trame - a web framework that weaves together open source components into customized visual analytics easily.

trame is French for

  • the core that ties things together

  • a guide providing the essence of a task

Welcome to trame and 3D visualization

With trame, create stunning, interactive web applications compactly and intuitively.

image_1 image_2 image_3

3D Visualization

With best-in-class VTK and ParaView platforms at its core, trame provides complete control of 3D visualizations and data movements. Developers benefit from a write-once environment while trame simply exposes both local and remote rendering through a single method.

Rich Features

trame leverages existing libraries and tools such as Vuetify, Altair, Vega, deck.gl, VTK, ParaView, and more, to create vivid content for visual analytics applications.

Problem Focused

By relying simply on Python, trame focuses on one’s data and associated analysis and visualizations while hiding the complications of web app development.

Desktop to cloud

The resulting trame applications can act as local desktop applications or remote cloud applications both accessed through a browser.

Installing

trame can be installed with pip:

pip install --upgrade trame

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.

License

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

Community

Trame | Discussions | Issues | RoadMap | Contact Us

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

Enjoying trame?

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

Optional dependencies

When installing trame using pip (pip install trame) you will get the core infrastructure for any trame application to work but more advanced usage may require additional dependencies. The list below captures what may need to add depending on your usage:

  • pywebview : Needed for desktop usage (–app)

  • jupyterlab : Needed to run inside jupyter-lab

  • notebook : Needed to run inside jupyter-notebook

  • requests : Needed when using remote assets such as GDrive files

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)

Life cycle callbacks

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

  • 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_server_reload : If callback registered it is used for reloading server side modules

Reserved state entries

The shared state allow us to synchronize the server with the client. Rather than creating another mechanism to handle similar needs throughout the application we purposely reuse that state internally. To prevent any conflict with any user we are prefixing our internal variable with trame__*. In general those state values should not be use or changed by the user except for the one listed below:

Read/Write:
  • trame__favicon: Update it to replace the displayed favicon in your browser. The content needs to be an image encoded url.

  • trame__title: Update it to replace your page title (tab name / window name).

Read-only:
  • trame__busy: Provide information if we have pending requests waiting for the server to respond.

  • tts: Template Time Stamp to regenerate sub elements when a template gets updated. Usually used as :key=”tts” to force some component rebuild.

Professional Support

  • Training: Learn how to confidently use trame from the expert developers at Kitware.

  • Support: Our experts can assist your team as you build your web application and establish in-house expertise.

  • Custom Development: Leverage Kitware’s 25+ years of experience to quickly build your web application.

3.12.0 Aug 18, 2025
3.11.0 Jul 24, 2025
3.10.2 Jun 06, 2025
3.10.1 May 28, 2025
3.10.0 May 28, 2025
3.9.1 May 27, 2025
3.9.0 Apr 25, 2025
3.8.2 Apr 10, 2025
3.8.1 Mar 08, 2025
3.8.0 Feb 04, 2025
3.7.6 Jan 01, 2025
3.7.5 Dec 30, 2024
3.7.1 Dec 05, 2024
3.7.0 Oct 20, 2024
3.6.5 Sep 09, 2024
3.6.4 Sep 09, 2024
3.6.3 Jun 19, 2024
3.6.2 Jun 01, 2024
3.6.1 May 27, 2024
3.6.0 Apr 10, 2024
3.5.5 Apr 02, 2024
3.5.4 Mar 21, 2024
3.5.3 Mar 13, 2024
3.5.2 Feb 01, 2024
3.5.1 Jan 10, 2024
3.5.0 Jan 01, 2024
3.4.0 Dec 11, 2023
3.3.0 Nov 03, 2023
3.2.8 Oct 24, 2023
3.2.7 Sep 28, 2023
3.2.6 Sep 21, 2023
3.2.5 Sep 15, 2023
3.2.4 Aug 18, 2023
3.2.3 Aug 18, 2023
3.2.2 Aug 17, 2023
3.2.1 Aug 16, 2023
3.2.0 Aug 16, 2023
3.1.0 Aug 04, 2023
3.0.2 Jul 20, 2023
3.0.1 Jul 20, 2023
3.0.0 Jul 20, 2023
2.5.2 Jul 20, 2023
2.5.0 May 19, 2023
2.4.2 May 11, 2023
2.4.1 May 11, 2023
2.4.0 Apr 25, 2023
2.3.2 Feb 14, 2023
2.3.1 Feb 10, 2023
2.3.0 Feb 08, 2023
2.2.6 Jan 20, 2023
2.2.5 Dec 17, 2022
2.2.4 Dec 12, 2022
2.2.3 Dec 11, 2022
2.2.2 Dec 02, 2022
2.2.1 Oct 21, 2022
2.2.0 Aug 29, 2022
2.1.2 Aug 24, 2022
2.1.1 Jun 15, 2022
2.1.0 Jun 04, 2022
2.0.1 May 31, 2022
2.0.0rc4 May 23, 2022
2.0.0rc3 May 13, 2022
2.0.0rc2 May 13, 2022
1.20.0 Apr 28, 2022
1.19.4 Apr 27, 2022
1.19.3 Apr 23, 2022
1.19.2 Apr 22, 2022
1.19.1 Apr 19, 2022
1.19.0 Apr 14, 2022
1.18.4 Apr 08, 2022
1.18.3 Apr 08, 2022
1.18.2 Apr 07, 2022
1.18.1 Apr 07, 2022
1.18.0 Apr 07, 2022
1.17.0 Apr 01, 2022
1.16.5 Apr 01, 2022
1.16.4 Mar 31, 2022
1.16.3 Mar 04, 2022
1.16.2 Feb 20, 2022
1.16.1 Feb 18, 2022
1.16.0 Feb 17, 2022
1.15.4 Feb 09, 2022
1.15.3 Feb 08, 2022
1.15.2 Feb 04, 2022
1.15.1 Feb 03, 2022
1.15.0 Feb 02, 2022
1.14.2 Feb 02, 2022
1.14.1 Feb 01, 2022
1.14.0 Feb 01, 2022
1.13.4 Feb 01, 2022
1.13.3 Jan 27, 2022
1.13.2 Jan 24, 2022
1.13.1 Jan 22, 2022
1.13.0 Jan 20, 2022
1.12.6 Jan 16, 2022
1.12.5 Jan 12, 2022
1.12.4 Jan 12, 2022
1.12.3 Jan 10, 2022
1.12.2 Jan 10, 2022
1.12.1 Jan 05, 2022
1.12.0 Jan 03, 2022
1.11.0 Dec 25, 2021
1.10.4 Dec 20, 2021
1.10.3 Dec 19, 2021
1.10.2 Dec 17, 2021
1.10.1 Dec 17, 2021
1.10.0 Dec 17, 2021
1.9.0 Dec 16, 2021
1.8.0 Dec 15, 2021
1.7.1 Dec 14, 2021
1.7.0 Dec 13, 2021
1.6.1 Dec 07, 2021
1.6.0 Dec 06, 2021
1.5.7 Dec 02, 2021
1.5.6 Dec 02, 2021
1.5.5 Nov 23, 2021
1.5.4 Nov 23, 2021
1.5.3 Nov 22, 2021
1.5.2 Nov 22, 2021
1.5.1 Nov 18, 2021
1.5.0 Nov 17, 2021
1.4.13 Nov 16, 2021
1.4.12 Nov 16, 2021
1.4.6 Nov 11, 2021
1.4.5 Nov 11, 2021
1.4.4 Nov 11, 2021
1.4.3 Nov 10, 2021
1.4.2 Nov 09, 2021
1.4.1 Nov 09, 2021
1.4.0 Nov 08, 2021
1.3.12 Nov 08, 2021
1.3.11 Nov 08, 2021
1.3.10 Nov 07, 2021
1.3.9 Nov 05, 2021
1.3.8 Nov 05, 2021
1.3.7 Nov 04, 2021
1.3.6 Nov 02, 2021
1.3.5 Nov 02, 2021
1.3.4 Nov 01, 2021
1.3.3 Nov 01, 2021
1.3.2 Nov 01, 2021
1.3.1 Nov 01, 2021
1.3.0 Oct 29, 2021
1.2.3 Oct 26, 2021
1.2.2 Oct 26, 2021
1.2.1 Oct 26, 2021
1.2.0 Oct 26, 2021
1.1.6 Oct 22, 2021
1.1.5 Oct 21, 2021
1.1.4 Oct 20, 2021
1.1.3 Oct 15, 2021
1.1.2 Oct 07, 2021
1.1.1 Oct 06, 2021
1.1.0 Oct 05, 2021
1.0.4 Oct 05, 2021
1.0.3 Oct 05, 2021
1.0.2 Oct 04, 2021
1.0.1 Oct 01, 2021
1.0.0 Sep 30, 2021

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
trame-server (<4,>=3.4)
trame-client (<4,>=3.10.1)
trame-common (<2,>=1)
wslink (>=2.3.3)
pyyaml