Skip to main content

trame-mui is the React equivalent of trame-vuetify: it wraps MUI (Material Design components for React, the direct analog of Vuetify for Vue) for trame applications running with client_type="react" (the native React client that ships with trame-client).

from trame.app import get_server
from trame.widgets import mui

server = get_server(client_type="react")

Not to be confused with trame-react, which embeds a Vue-rendered trame application inside a React application through an iframe.

Illustration of what can be done with trame and mui

Layout (mirrors trame-vuetify)

  • react-components/ - React components + install(registry) plugin, bundled with React as an external, and the Python class generator

  • src/trame_mui/module/ - module descriptor (serve/scripts/ styles/react_use) consumed by server.enable_module()

  • src/trame_mui/widgets/ - generated Python widget classes

Development

Build and install the Vue components

cd react-components
npm i
npm run build
cd -

Install the library

# Create venv and install all dependencies
uv sync --all-extras --dev

# Activate environment
source .venv/bin/activate

# Install commit analysis
pre-commit install
pre-commit install --hook-type commit-msg

License

trame-mui is made available under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trame_mui-1.0.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trame_mui-1.0.0-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file trame_mui-1.0.0.tar.gz.

File metadata

  • Download URL: trame_mui-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trame_mui-1.0.0.tar.gz
Algorithm Hash digest
SHA256 37a8a25a5f8829b057034fe5586ff2933176037078470ef5d63172e36c6e15e8
MD5 c3a149e85949b631bdcdbdb584cf1869
BLAKE2b-256 fd34c9436545bfa0a6768cc9d745b19c1163ef37bbcaca6d2b6f7e3f26a2a6e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_mui-1.0.0.tar.gz:

Publisher: test_and_release.yml on Kitware/trame-mui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trame_mui-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: trame_mui-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trame_mui-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94f92bc7bc98d9645fdfa9049ce8425a8970da4b8d808251ba9abdb268efca33
MD5 f1443ebd8ddd91498340b33c1d55f223
BLAKE2b-256 655ce0556e8dddb2155489a16bf0b062b68793ed7fa09f7bd7ff138848f15454

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_mui-1.0.0-py3-none-any.whl:

Publisher: test_and_release.yml on Kitware/trame-mui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page