Shared assets for the FIT Project: icons, fonts, QSS themes, images, and Qt resource files used across external modules (fit-configuration, fit-cases, fit-instagram, etc.).
- Provide a single source for reusable assets shared among FIT modules.
- Offer a clear structure for managing Qt Resource Collections (
.qrcfiles), compiled either as Python modules (*_rc.py) or binary bundles (.rcc).
- Python >=3.11,<3.14
- PySide6 ≥ 6.9.0 (for
pyside6-rcc) - Poetry (recommended for development)
poetry add git+https://github.com/fit-project/fit-assets.git@main
# or using pip
pip install git+https://github.com/fit-project/fit-assets.git@maingit clone https://github.com/fit-project/fit-assets.git
cd fit-assets
poetry installpytest: runs contract tests
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip
pip install . pytest# contract tests
pytest -m contract -q testsCompile the .qrc file into a Python module:
pyside6-rcc fit_assets/resources.qrc -o fit_assets/resources.pyThen, simply import it in your Python code before using :/ paths:
# Import the generated resources (side-effect: registers the RCC)
import fit_assets.resources
from PySide6.QtGui import QIcon
btn.setIcon(QIcon(':/icons/fit.svg'))- Fork this repository.
- Create a new branch (
git checkout -b feat/my-feature). - Commit your changes using Conventional Commits.
- Submit a Pull Request describing your modification.