Skip to main content

trame-common: common code for any trame package

Trame is rapidly evolving and having a dependency-less package to provide helper functions and classes across trame's eco-system is important for its future health. Initially some of those classes were created inside trame-client, trame-server or even trame, but we reached a point where some of those should become even more mainstream so they could easily be used on server, client, widget and more. That is where trame-common comes to play by providing a central location that any package can depend on. By default, trame remain the meta package that will impose some minimum version on trame-common, trame-client and trame-server and expose via some common namespace various pieces of those 3 dependencies. But if you need any piece of trame-common, feel free to depend on it.

Trame-common is not meant to be installed by itself, but instead be used by any trame package that may require one of its function or helper class. While some of the module may require extra dependency, we are not listing them in this package purposely but the using code, should properly describe such dependency.

Content

trame-common is composed of several packages to split the current set of classes and function in meaningful groups.

  • trame_common.assets: Contains anything related to local and remote file including possible associated mime types.
  • trame_common.decorators: Contains all decorators for functions, classes and methods.
  • trame_common.exec: Contains helpers for handling code execution (i.e. async, throttle, debounce, thread, process).
  • trame_common.obj: Contains helpers for common trame objects (i.e. Component, App, Widget, Singleton)
  • trame_common.utils: Contains utility functions.

License

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

Development steps

# 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

# Run pre-commit
pre-commit run --all-files

# Run tests
pytest

Tips

  • Use conventional commit messages for your commit message so the CI will generate release notes and trigger release when needed.
  • When first creating a new project, it is helpful to run pre-commit run --all-files to ensure all files pass the pre-commit checks.
  • A quick way to fix codespell issues is by installing codespell (pip install codespell) and running the codespell -w command at the root of your directory.
  • The .codespellrc file <https://github.com/codespell-project/codespell#using-a-config-file>_ can be used fix any other codespell issues, such as ignoring certain files, directories, words, or regular expressions.

Metadata

Release files for trame-common 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trame-common 1.3.0
File Size Uploaded Provenance Actions
trame_common-1.3.0.tar.gz 31.3 kB With provenance Details for trame_common-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trame-common 1.3.0
File Interpreter ABI Platform Actions
trame_common-1.3.0-py3-none-any.whl Python 3 none any Details for trame_common-1.3.0-py3-none-any.whl

Total release size: 67.8 kB

Release files / trame_common-1.3.0.tar.gz

Download URL trame_common-1.3.0.tar.gz
Size 31.3 kB
Tags Source
SHA-256 checksum
How to use checksums
32d2c60ef6b3d063c08c9876bff094b10619889b59e1a846850e664259aedeb9
BLAKE2b-256 checksum
How to use checksums
51d13b8532158a7d1d6a81fc31f2ca0e3736fdeb78c428c0be55be72f3ba43cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / trame_common-1.3.0-py3-none-any.whl

Download URL trame_common-1.3.0-py3-none-any.whl
Size 36.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28ce1a1ed41e078a9c55523e6f355e82fd72f1402db1c7a8e127301f351936f8
BLAKE2b-256 checksum
How to use checksums
6d02e203a24b4ab87ae6ea1feb248894feba6233f578f8150ba9f0cb395cb753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for trame-common 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trame_common-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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