Dependency less classes and functions for trame
Project description
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
- Clone the repository using
git clone - Install pre-commit via
pip install pre-commitorpip install -e ".[dev]" - Run
pre-commit installto set up pre-commit hooks - Run
pre-commit install --hook-type commit-msgto register commit-msg hook - Make changes to the code, and commit your changes to a separate branch. Use conventional commit messages.
- Create a fork of the repository on GitHub
- Push your branch to your fork, and open a pull request
Tips
- When first creating a new project, it is helpful to run
pre-commit run --all-filesto ensure all files pass the pre-commit checks. - A quick way to fix
ruffissues is by installing ruff (pip install ruff) and running theruff check --fix .orruff formatcommand at the root of your repository. - A quick way to fix
codespellissues is by installing codespell (pip install codespell) and running thecodespell -wcommand 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trame_common-1.2.2.tar.gz.
File metadata
- Download URL: trame_common-1.2.2.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dcec7a0fa32ed217ede05c83f03f1013e84bc36e8e6ff92cf828077df6994fa
|
|
| MD5 |
33ec12418314c8af6a97236f6d7f73b8
|
|
| BLAKE2b-256 |
88e988b8f012a8ae84d7ff628a8e75482f446a854f7acabaad5e7dcb8e1f7d6a
|
Provenance
The following attestation bundles were made for trame_common-1.2.2.tar.gz:
Publisher:
test_and_release.yml on Kitware/trame-common
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_common-1.2.2.tar.gz -
Subject digest:
3dcec7a0fa32ed217ede05c83f03f1013e84bc36e8e6ff92cf828077df6994fa - Sigstore transparency entry: 1464350824
- Sigstore integration time:
-
Permalink:
Kitware/trame-common@b03e33bfa9f12eb2e7df34c37e235c935ce7260f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Kitware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_release.yml@b03e33bfa9f12eb2e7df34c37e235c935ce7260f -
Trigger Event:
push
-
Statement type:
File details
Details for the file trame_common-1.2.2-py3-none-any.whl.
File metadata
- Download URL: trame_common-1.2.2-py3-none-any.whl
- Upload date:
- Size: 23.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da9f67309d253439404bd028e6aacfb16d4f80059f590ac195e1871883bd88ed
|
|
| MD5 |
fff7751d2720ab9c2845992dfd3ee23f
|
|
| BLAKE2b-256 |
75022fc8d01ba8b65a1a648d47001aa5c4db5c436e7ff193271a5e67833419e2
|
Provenance
The following attestation bundles were made for trame_common-1.2.2-py3-none-any.whl:
Publisher:
test_and_release.yml on Kitware/trame-common
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trame_common-1.2.2-py3-none-any.whl -
Subject digest:
da9f67309d253439404bd028e6aacfb16d4f80059f590ac195e1871883bd88ed - Sigstore transparency entry: 1464351296
- Sigstore integration time:
-
Permalink:
Kitware/trame-common@b03e33bfa9f12eb2e7df34c37e235c935ce7260f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Kitware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test_and_release.yml@b03e33bfa9f12eb2e7df34c37e235c935ce7260f -
Trigger Event:
push
-
Statement type: