Lyco Python Framework is a boilerplate for building Python desktop tools. It provides a runnable example app (image mosaic) plus a full stack of tooling: CI, security scans, task runner, docs, and AI-assisted maintenance prompts.
Documentation lives in docs/. Start here:
Docs tree (links):
docs/(folder)- docs/README.md
- docs/boilerplate.md
- docs/usage.md
- docs/extension.md
- docs/ai-assistance.md
- docs/ai-assistance-customization.md
- docs/tools-and-scripts.md
Docs for tooling and AI-assistance live under docs/:
- Tooling:
docs/tools-and-scripts.md - AI assistance:
docs/ai-assistance.md,docs/ai-assistance-customization.md
- Update
pyproject.toml(name, description, scripts, dependencies). - Replace the example app under
src/lyco/with your own package. - Update
src/lyco/app_config.jsonto point at your module/callable. - Update
README.md,DOCS.md,CONTEXT.md, andAGENT.md. - Keep the tooling, CI, and security scaffolding as your foundation.
See docs/boilerplate.md and docs/ai-assistance-customization.md for the guided workflow.
- Generate
.envdefaults:python tools/setup_env.py. - Install runtime deps:
python -m pip install -r requirements.txt. - Run the example app:
python Lyco.py --help. - Run tests:
python -m unittest discover -s tests.
The bundled Hello-world app composes a transparent wallpaper from a YAML layout file and includes a PyQt GUI editor.
Example YAML:
output: wallpaper.png
canvas_width: 7680
canvas_height: 2160
items:
- file: "img1.png"
x: 0
y: 0
resolution: "1920x1080"
- file: "img2.jpg"
x: 1920
y: 0
resolution: "2560x1440"lyco compose -c layout.yml -o wallpaper.png
lyco gui -c layout.ymlRepo wrapper (no install):
python Lyco.py compose -c layout.yml -o wallpaper.png
python Lyco.py gui -c layout.ymlModule invocation:
python -m lyco --helpTarget Python version: 3.12 (see .python-version).
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txtEditable install:
python -m pip install -e .Optional semgrep tools:
python -m pip install -r requirements-semgrep.txtpython -m unittest discover -s testsCI is configured for GitHub Actions and GitLab CI (.github/workflows/ci.yml, .gitlab-ci.yml).
python -m pip install .[build]
python tools/build_binary.py
python -m buildNuitka does not support the Windows Store Python distribution. Use Python from python.org for binary builds on Windows.
GNU General Public License v3.0. See LICENSE.