nico579-commons
Shared building blocks for four small open-source apps: blink2video, lidar2map, watch2notif and gpxsolar.
Each of them grew its own copy of the same pieces: the system tray icon, the local web server, atomic file writes, the update check. Every fix had to be carried by hand into the other copies, and some were forgotten. This package gathers those pieces in one place, one module each, so that the four apps behave the same and a fix lands everywhere at once.
Modules
nico579_commons.tray: the tray icon, with the menu shared by the four apps: Open, the app's own items, "Update to x.y" only when a newer version is known, Restart, Stop, and "Create a Desktop shortcut". The menu is rebuilt every five seconds, on the main thread under macOS; Restart, Stop and Update run off the icon's message loop, and the icon waits for them before returning.
The inventory of what is shared, and where the work stands, lives in INVENTAIRE.md (in French).
Use
from nico579_commons import tray
actions = tray.Actions(ouvrir=open_page, redemarrer=restart, arreter=stop,
version_disponible=cached_newer_version,
mettre_a_jour=start_update, langue=current_language)
tray.Tray("myapp", Path("assets/myapp.ico"), actions).executer()
Python 3.8 or later: blink2video still ships a Windows 7 build on 3.8.
License
GPL-3.0-or-later, like the four apps.
Metadata
Release files for nico579-commons 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nico579_commons-0.1.0.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nico579_commons-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 kB
Release files / nico579_commons-0.1.0.tar.gz
| Download URL | nico579_commons-0.1.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2bc7408dd0cefb3ca0a52a16aa86361fad582f44f68114404dd1d5341dc2e1ad
|
|
BLAKE2b-256 checksum How to use checksums |
3c4f38f382b23adbf34ab7d414efb3a7534a90554d49c0d8a9c78719a8aae67e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency logRelease files / nico579_commons-0.1.0-py3-none-any.whl
| Download URL | nico579_commons-0.1.0-py3-none-any.whl |
|---|---|
| Size | 18.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
457b4cb0ecba9a1f3df2793217d0c71a5de5ad6c0c1cd473bc13dc9ef77dd871
|
|
BLAKE2b-256 checksum How to use checksums |
9e46105be6dacd81865971b8450106d5d16e3e4d5eb0e6b4308365e5c6c6eb6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 28, 2026.
Transparency log