selecta-photo 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- selecta_photo-1.0.0/LICENSE +21 -0
- selecta_photo-1.0.0/MANIFEST.in +3 -0
- selecta_photo-1.0.0/PKG-INFO +382 -0
- selecta_photo-1.0.0/README.md +334 -0
- selecta_photo-1.0.0/backend/selecta/__init__.py +16 -0
- selecta_photo-1.0.0/backend/selecta/__main__.py +7 -0
- selecta_photo-1.0.0/backend/selecta/analysis.py +87 -0
- selecta_photo-1.0.0/backend/selecta/app.py +143 -0
- selecta_photo-1.0.0/backend/selecta/app_api.py +140 -0
- selecta_photo-1.0.0/backend/selecta/applog.py +100 -0
- selecta_photo-1.0.0/backend/selecta/browser.py +283 -0
- selecta_photo-1.0.0/backend/selecta/cli.py +195 -0
- selecta_photo-1.0.0/backend/selecta/config.py +979 -0
- selecta_photo-1.0.0/backend/selecta/db.py +354 -0
- selecta_photo-1.0.0/backend/selecta/decisions.py +271 -0
- selecta_photo-1.0.0/backend/selecta/defects.py +102 -0
- selecta_photo-1.0.0/backend/selecta/desktop_icon.py +71 -0
- selecta_photo-1.0.0/backend/selecta/evaluation.py +1486 -0
- selecta_photo-1.0.0/backend/selecta/evaluation_api.py +139 -0
- selecta_photo-1.0.0/backend/selecta/export.py +1236 -0
- selecta_photo-1.0.0/backend/selecta/fs.py +85 -0
- selecta_photo-1.0.0/backend/selecta/groups.py +390 -0
- selecta_photo-1.0.0/backend/selecta/groups_api.py +92 -0
- selecta_photo-1.0.0/backend/selecta/icons/selecta.png +0 -0
- selecta_photo-1.0.0/backend/selecta/icons/selecta.svg +5 -0
- selecta_photo-1.0.0/backend/selecta/imaging.py +206 -0
- selecta_photo-1.0.0/backend/selecta/importer.py +242 -0
- selecta_photo-1.0.0/backend/selecta/instance.py +162 -0
- selecta_photo-1.0.0/backend/selecta/jobs.py +103 -0
- selecta_photo-1.0.0/backend/selecta/launcher.py +527 -0
- selecta_photo-1.0.0/backend/selecta/learning.py +292 -0
- selecta_photo-1.0.0/backend/selecta/lifecycle.py +193 -0
- selecta_photo-1.0.0/backend/selecta/logging_filter.py +144 -0
- selecta_photo-1.0.0/backend/selecta/metrics.py +315 -0
- selecta_photo-1.0.0/backend/selecta/netcheck.py +83 -0
- selecta_photo-1.0.0/backend/selecta/options_api.py +175 -0
- selecta_photo-1.0.0/backend/selecta/pricing.py +262 -0
- selecta_photo-1.0.0/backend/selecta/pricing.toml +92 -0
- selecta_photo-1.0.0/backend/selecta/profiles/automotive.toml +29 -0
- selecta_photo-1.0.0/backend/selecta/profiles/aviation.toml +30 -0
- selecta_photo-1.0.0/backend/selecta/profiles/nature.toml +30 -0
- selecta_photo-1.0.0/backend/selecta/profiles/portrait.toml +29 -0
- selecta_photo-1.0.0/backend/selecta/profiles/urban.toml +30 -0
- selecta_photo-1.0.0/backend/selecta/profiles.py +297 -0
- selecta_photo-1.0.0/backend/selecta/providers/__init__.py +61 -0
- selecta_photo-1.0.0/backend/selecta/providers/base.py +157 -0
- selecta_photo-1.0.0/backend/selecta/providers/catalog.py +96 -0
- selecta_photo-1.0.0/backend/selecta/providers/cloud.py +268 -0
- selecta_photo-1.0.0/backend/selecta/providers/http.py +247 -0
- selecta_photo-1.0.0/backend/selecta/providers/ollama.py +119 -0
- selecta_photo-1.0.0/backend/selecta/raw.py +533 -0
- selecta_photo-1.0.0/backend/selecta/raw_child.py +403 -0
- selecta_photo-1.0.0/backend/selecta/scanner.py +195 -0
- selecta_photo-1.0.0/backend/selecta/security.py +89 -0
- selecta_photo-1.0.0/backend/selecta/server.py +192 -0
- selecta_photo-1.0.0/backend/selecta/sessions.py +409 -0
- selecta_photo-1.0.0/backend/selecta/settings_api.py +327 -0
- selecta_photo-1.0.0/backend/selecta/stats.py +146 -0
- selecta_photo-1.0.0/backend/selecta/urls.py +71 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/index-B15O5qxW.js +11 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/index-Bmvl4Jzq.css +2 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-cyrillic-700-normal-BWTpRfYl.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-cyrillic-700-normal-CEoEElIJ.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-greek-700-normal-C6CZE3T8.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-greek-700-normal-DEigVDxa.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-700-normal-BYuf6tUa.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-700-normal-D3wTyLJW.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-ext-700-normal-CZipNAKV.woff2 +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-latin-ext-700-normal-CxPITLHs.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/assets/jetbrains-mono-vietnamese-700-normal-BDLVIk2r.woff +0 -0
- selecta_photo-1.0.0/backend/selecta/web/index.html +13 -0
- selecta_photo-1.0.0/backend/selecta/winjob.py +150 -0
- selecta_photo-1.0.0/backend/selecta/xmp.py +587 -0
- selecta_photo-1.0.0/backend/selecta_photo.egg-info/PKG-INFO +382 -0
- selecta_photo-1.0.0/backend/selecta_photo.egg-info/SOURCES.txt +97 -0
- selecta_photo-1.0.0/backend/selecta_photo.egg-info/dependency_links.txt +1 -0
- selecta_photo-1.0.0/backend/selecta_photo.egg-info/entry_points.txt +2 -0
- selecta_photo-1.0.0/backend/selecta_photo.egg-info/requires.txt +28 -0
- selecta_photo-1.0.0/backend/selecta_photo.egg-info/top_level.txt +1 -0
- selecta_photo-1.0.0/pyproject.toml +123 -0
- selecta_photo-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Leonardo Michelon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: selecta-photo
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Open-source, local-first AI photo culling: groups similar shots, scores sharpness and exposure locally, and lets a vision model (your own API key, or Ollama) pick the best frame.
|
|
5
|
+
Author: Leonardo Michelon
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/LeoFrizzy28/selecta-photo
|
|
8
|
+
Project-URL: Source, https://github.com/LeoFrizzy28/selecta-photo
|
|
9
|
+
Project-URL: Issues, https://github.com/LeoFrizzy28/selecta-photo/issues
|
|
10
|
+
Project-URL: Changelog, https://github.com/LeoFrizzy28/selecta-photo/releases
|
|
11
|
+
Project-URL: Website, https://selectaphoto.it
|
|
12
|
+
Keywords: photography,photo-culling,culling,photo-selection,ai,vision,raw,xmp,ollama,local-first
|
|
13
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
14
|
+
Classifier: Environment :: Web Environment
|
|
15
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
18
|
+
Classifier: Operating System :: MacOS
|
|
19
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
25
|
+
Classifier: Framework :: FastAPI
|
|
26
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
27
|
+
Classifier: Topic :: Multimedia :: Graphics :: Viewers
|
|
28
|
+
Requires-Python: >=3.12
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Requires-Dist: fastapi>=0.115
|
|
32
|
+
Requires-Dist: uvicorn>=0.30
|
|
33
|
+
Requires-Dist: pydantic>=2.7
|
|
34
|
+
Requires-Dist: platformdirs>=4.2
|
|
35
|
+
Requires-Dist: Pillow>=11.0
|
|
36
|
+
Requires-Dist: opencv-python-headless>=4.10; sys_platform != "darwin" or platform_machine != "arm64"
|
|
37
|
+
Requires-Dist: opencv-python-headless>=5.1.0.95; sys_platform == "darwin" and platform_machine == "arm64"
|
|
38
|
+
Requires-Dist: numpy>=2.0
|
|
39
|
+
Provides-Extra: dev
|
|
40
|
+
Requires-Dist: pytest>=8.3; extra == "dev"
|
|
41
|
+
Requires-Dist: httpx2>=2.16; extra == "dev"
|
|
42
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
43
|
+
Provides-Extra: raw
|
|
44
|
+
Requires-Dist: rawpy>=0.28; sys_platform != "darwin" and extra == "raw"
|
|
45
|
+
Requires-Dist: rawpy>=0.28; (sys_platform == "darwin" and platform_machine != "x86_64") and extra == "raw"
|
|
46
|
+
Requires-Dist: rawpy==0.25.1; (sys_platform == "darwin" and platform_machine == "x86_64") and extra == "raw"
|
|
47
|
+
Dynamic: license-file
|
|
48
|
+
|
|
49
|
+
# Selecta
|
|
50
|
+
|
|
51
|
+
Open-source, local-first AI photo culling assistant. Selecta groups similar shots into scenes,
|
|
52
|
+
scores sharpness, motion blur and exposure on your own computer, can ask a vision model to pick the
|
|
53
|
+
best frame of each scene, and exports the photos you keep to a `Selecta_selection` subfolder.
|
|
54
|
+
|
|
55
|
+
Repository: `github.com/LeoFrizzy28/selecta-photo` · Licence: MIT · Version: 1.0.0
|
|
56
|
+
|
|
57
|
+
## Which download do I need?
|
|
58
|
+
|
|
59
|
+
| If you… | Do this |
|
|
60
|
+
| --- | --- |
|
|
61
|
+
| **I just want to use Selecta** | Download the archive for your system from the [Releases](https://github.com/LeoFrizzy28/selecta-photo/releases) page. No Python needed; see [Install the standalone executable](https://github.com/LeoFrizzy28/selecta-photo#install-the-standalone-executable). Do not use **Code → Download ZIP**: that is the source code, not the app. |
|
|
62
|
+
| **I already use Python** | `pipx install "selecta-photo[raw]"`. See [Install with pipx or pip](https://github.com/LeoFrizzy28/selecta-photo#install-with-pipx-or-pip). |
|
|
63
|
+
| **I want to read or change the code** | Clone the repository and follow [Development](https://github.com/LeoFrizzy28/selecta-photo#development). |
|
|
64
|
+
|
|
65
|
+
## What it is and how it works
|
|
66
|
+
|
|
67
|
+
1. **Import** a folder of photos (JPEG and, with RAW support, CR2, CR3, NEF, NRW, ARW, SRF, SR2,
|
|
68
|
+
RAF, ORF, RW2, PEF, DNG). Selecta reads the capture date and makes reduced previews; RAW+JPEG
|
|
69
|
+
pairs count as one photo.
|
|
70
|
+
2. **Local analysis**, without AI and without network: sharpness, motion blur, clipped highlights,
|
|
71
|
+
crushed shadows and near-duplicates. Similar shots taken close in time are grouped into scenes,
|
|
72
|
+
and each scene gets a recommended photo.
|
|
73
|
+
3. **AI evaluation (optional).** Selecta sends the reduced previews of the candidate photos to a
|
|
74
|
+
vision model, which scores them and picks the best one of each scene. Obvious rejects (blurry,
|
|
75
|
+
and depending on the rigor level motion-blurred or badly exposed) are not sent, which saves
|
|
76
|
+
money. You choose the provider and use your own API key: Anthropic, OpenAI or Google Gemini.
|
|
77
|
+
**Ollama** is a local alternative: the model runs on your own computer, with no key and no
|
|
78
|
+
cost. Genre profiles (aviation, nature, portrait, urban, automotive) and three rigor levels
|
|
79
|
+
tune what the AI looks for.
|
|
80
|
+
4. **Review** the proposals, keep or reject photos, merge or split scenes. Selecta can learn from
|
|
81
|
+
your corrections.
|
|
82
|
+
5. **Export** the kept photos (copies or hard links) into `Selecta_selection` (optionally one
|
|
83
|
+
`scene-001`, `scene-002`, … subfolder per scene, and a `Selecta_favorites.txt` / `.csv` list),
|
|
84
|
+
and optionally write XMP sidecar files (stars and colour labels) that darktable and other
|
|
85
|
+
editors read.
|
|
86
|
+
|
|
87
|
+
The interface is a page in your browser; the server runs on your computer and listens only on
|
|
88
|
+
`127.0.0.1`.
|
|
89
|
+
|
|
90
|
+
### Privacy in brief
|
|
91
|
+
|
|
92
|
+
- Your original photos never leave your computer and are never modified. Only reduced previews
|
|
93
|
+
(about 1024 px) go to the AI provider **you** chose, and only when you start an evaluation.
|
|
94
|
+
With Ollama on your own computer, nothing leaves it at all.
|
|
95
|
+
- Your API key is stored only in `config.toml` in your user data folder. It never appears in logs,
|
|
96
|
+
responses or exported files.
|
|
97
|
+
- No telemetry, no analytics, no account.
|
|
98
|
+
- In your photo folder Selecta writes only to `Selecta_selection` and to XMP files, and only when
|
|
99
|
+
you ask.
|
|
100
|
+
|
|
101
|
+
Full details: [docs/privacy.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/privacy.md).
|
|
102
|
+
|
|
103
|
+
## Install the standalone executable
|
|
104
|
+
|
|
105
|
+
No Python needed. Download the archive for your system from the
|
|
106
|
+
[Releases](https://github.com/LeoFrizzy28/selecta-photo/releases) page, check it against
|
|
107
|
+
`SHA256SUMS` (`sha256sum -c SHA256SUMS --ignore-missing`) and extract it.
|
|
108
|
+
|
|
109
|
+
| System | File | Requirements |
|
|
110
|
+
| --- | --- | --- |
|
|
111
|
+
| Windows | `selecta-<version>-windows-x64.zip` | Windows 10/11, 64-bit (x64) |
|
|
112
|
+
| macOS, Apple Silicon | `selecta-<version>-macos-arm64.tar.gz` | macOS 15 (Sequoia) or later |
|
|
113
|
+
| macOS, Intel | `selecta-<version>-macos-x86_64.tar.gz` | macOS 14 (Sonoma) or later |
|
|
114
|
+
| Linux | `selecta-<version>-linux-x64.tar.gz` | x86-64 with **glibc 2.35 or later** (Ubuntu 22.04+, Debian 12+, Fedora 36+) |
|
|
115
|
+
|
|
116
|
+
### Start and stop
|
|
117
|
+
|
|
118
|
+
- **Double-click** `selecta.exe` (Windows), `Selecta.app` (macOS) or `selecta.desktop` (Linux; or
|
|
119
|
+
run `./selecta` from the extracted folder). The server starts and your browser opens on
|
|
120
|
+
Selecta.
|
|
121
|
+
- **Closing the Selecta page stops the server** (after a short wait, so a reload does not stop
|
|
122
|
+
it). Work in progress (import, analysis, AI evaluation, export) keeps it running until it ends.
|
|
123
|
+
- The **Quit Selecta** button at the bottom of the sidebar stops it immediately (it asks for
|
|
124
|
+
confirmation if something is still running).
|
|
125
|
+
- Only one Selecta runs per user: starting it again opens the browser on the running instance.
|
|
126
|
+
|
|
127
|
+
Command-line options (all optional):
|
|
128
|
+
|
|
129
|
+
| Option | Effect |
|
|
130
|
+
| --- | --- |
|
|
131
|
+
| `--keep-running` | do not stop when the page is closed (stop with Quit or Ctrl+C) |
|
|
132
|
+
| `--no-browser` | do not open the browser at start-up |
|
|
133
|
+
| `--port PORT` | use this port on 127.0.0.1 (default: the one in `config.toml`, 8000, or the next free one) |
|
|
134
|
+
| `--data-dir DIR` | keep `config.toml`, the database and the preview cache in this folder |
|
|
135
|
+
| `--check-connection [URL ...]` | check the HTTPS connection to the AI providers and exit (no key is sent) |
|
|
136
|
+
| `--install-launcher` | Linux only: add Selecta to your applications menu and exit |
|
|
137
|
+
| `--uninstall-launcher` | Linux only: remove that menu entry and exit |
|
|
138
|
+
| `--version` | print the version |
|
|
139
|
+
|
|
140
|
+
The environment variable `SELECTA_AUTO_QUIT=0` also turns automatic quitting off (as does
|
|
141
|
+
`[app] auto_quit = false` in `config.toml`). If the browser does not open, the address is written
|
|
142
|
+
in `selecta.log` and in `instance.json` in the data folder.
|
|
143
|
+
|
|
144
|
+
### Linux: add Selecta to your applications menu
|
|
145
|
+
|
|
146
|
+
Double-clicking `selecta.desktop` inside the extracted folder works, but KDE asks for confirmation
|
|
147
|
+
every time and Selecta does not appear in the application menu, so you cannot pin it to the
|
|
148
|
+
taskbar. On the first start on Linux, Selecta asks **"Add Selecta to your applications menu?"**:
|
|
149
|
+
|
|
150
|
+
- **Add to menu** writes one file, `selecta.desktop` in your applications folder (usually
|
|
151
|
+
`~/.local/share/applications`), that starts Selecta from its current absolute path. From then
|
|
152
|
+
on Selecta is in the menu and in the launcher search (KRunner, GNOME Activities), starts
|
|
153
|
+
without confirmation and can be pinned to the taskbar.
|
|
154
|
+
- **No thanks** saves your answer and the question does not come back. You can add it later in
|
|
155
|
+
**Settings → General → Applications menu**.
|
|
156
|
+
|
|
157
|
+
With pip/pipx, adding the entry also copies the Selecta icon from the package into your icon theme
|
|
158
|
+
(`~/.local/share/icons/hicolor`); the standalone executable does that at every start.
|
|
159
|
+
|
|
160
|
+
You can change your mind in **Settings → General → Applications menu** (Add / Remove), or from a
|
|
161
|
+
terminal:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
selecta --install-launcher # add (works for the standalone executable and for pip/pipx)
|
|
165
|
+
selecta --uninstall-launcher # remove
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Extract Selecta in a folder of your home** (for example `~/Applications`), not in `/tmp`: the
|
|
169
|
+
menu entry is refused if the executable sits in `/tmp`, `/var/tmp`, `/dev/shm` or in any folder
|
|
170
|
+
that belongs to another user or that other users can write to, because whoever could replace the
|
|
171
|
+
file would run their own program when you click the entry. A folder path containing `%` is also
|
|
172
|
+
refused (some desktops do not load such an entry): rename the folder without `%`.
|
|
173
|
+
|
|
174
|
+
Selecta removes only an entry it created itself (it carries the line `X-Selecta-Launcher=true`);
|
|
175
|
+
an entry you wrote by hand is never overwritten or deleted. If you move the extracted folder or
|
|
176
|
+
extract a new version elsewhere, the next start from the new place updates the entry; if you
|
|
177
|
+
delete the file by hand, Selecta does not recreate it and does not ask again. Not available on
|
|
178
|
+
Windows, macOS or in Docker. Details: [docs/privacy.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/privacy.md#outside-the-data-folder-linux-icon-and-menu-entry).
|
|
179
|
+
|
|
180
|
+
### First start: unsigned executables
|
|
181
|
+
|
|
182
|
+
The executables are not signed (we have no code-signing certificate), so the first start shows a
|
|
183
|
+
warning:
|
|
184
|
+
|
|
185
|
+
- **Windows (SmartScreen):** "Windows protected your PC" → **More info** → **Run anyway**.
|
|
186
|
+
- **macOS 15 Sequoia and later (Gatekeeper):** the first start is blocked. Open **System Settings →
|
|
187
|
+
Privacy & Security**, scroll to the message about Selecta and click **Open Anyway**. On macOS 14:
|
|
188
|
+
right-click `Selecta.app` → **Open** → **Open**. Alternatively, in Terminal, from the extracted
|
|
189
|
+
folder: `xattr -dr com.apple.quarantine Selecta.app`.
|
|
190
|
+
- **Linux:** extract the archive, then double-click `selecta.desktop` (on GNOME the first time:
|
|
191
|
+
right-click → **Allow Launching**) or run `./selecta` in a terminal. From the first start on, the
|
|
192
|
+
file manager shows the Selecta icon (see [docs/privacy.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/privacy.md#outside-the-data-folder-linux-icon-and-menu-entry)).
|
|
193
|
+
With Docker on SELinux systems see the [Docker](https://github.com/LeoFrizzy28/selecta-photo#docker) section.
|
|
194
|
+
|
|
195
|
+
Download the executables only from this repository's Releases page and check them with
|
|
196
|
+
`SHA256SUMS`.
|
|
197
|
+
|
|
198
|
+
## Install with pipx or pip
|
|
199
|
+
|
|
200
|
+
Requires **Python 3.12, 3.13 or 3.14**. The PyPI package is called `selecta-photo`; the command is
|
|
201
|
+
`selecta`. The `[raw]` extra adds RAW support (rawpy/LibRaw); without it, JPEGs work and RAW files
|
|
202
|
+
are reported as not supported.
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
pipx install "selecta-photo[raw]"
|
|
206
|
+
selecta
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
or, in a virtual environment, `python -m pip install "selecta-photo[raw]"`.
|
|
210
|
+
|
|
211
|
+
To try a future release candidate, download its wheel from TestPyPI without dependencies and
|
|
212
|
+
install that file, so that the dependencies still come from PyPI:
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
python -m pip download --no-deps --index-url https://test.pypi.org/simple/ -d rc "selecta-photo==<version>"
|
|
216
|
+
pipx install "./rc/selecta_photo-<version>-py3-none-any.whl[raw]"
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
On an **Intel Mac** the `[raw]` extra installs rawpy 0.25.1, which has no wheels for Python 3.14:
|
|
220
|
+
use Python 3.12 or 3.13 there.
|
|
221
|
+
|
|
222
|
+
## Docker
|
|
223
|
+
|
|
224
|
+
```bash
|
|
225
|
+
docker build -t selecta .
|
|
226
|
+
mkdir -p "$HOME/.selecta-docker" "$HOME/Photos/shoot/Selecta_selection"
|
|
227
|
+
docker run --rm --user "$(id -u):$(id -g)" \
|
|
228
|
+
-p 127.0.0.1:8000:8000 \
|
|
229
|
+
-v "$HOME/.selecta-docker:/data" \
|
|
230
|
+
-v "$HOME/Photos/shoot:/photos:ro" \
|
|
231
|
+
-v "$HOME/Photos/shoot/Selecta_selection:/photos/Selecta_selection" \
|
|
232
|
+
selecta
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Then open <http://127.0.0.1:8000> and choose the `/photos` folder in the app.
|
|
236
|
+
|
|
237
|
+
- **Always publish the port as `127.0.0.1:8000:8000`.** With `-p 8000:8000` Docker opens the port
|
|
238
|
+
on every network interface, often bypassing the firewall, and anyone on your network could
|
|
239
|
+
browse your photos and use your API key. Selecta has no login: it is meant for one local user.
|
|
240
|
+
- **Photos read-only** (`:ro`); only the `Selecta_selection` subfolder is mounted writable. Create
|
|
241
|
+
it first (`mkdir -p`). With read-only photos, XMP files next to the originals cannot be written.
|
|
242
|
+
- The container runs as a **non-root user** (uid 10001); with `--user "$(id -u):$(id -g)"` it
|
|
243
|
+
writes as your own user. With rootless podman add `--userns=keep-id`.
|
|
244
|
+
- **SELinux** (Fedora, RHEL…): add `--security-opt label=disable`. **Never use `:Z` on the photo
|
|
245
|
+
folder**: it would relabel every one of your photos on the host.
|
|
246
|
+
- Automatic quitting is off in the container (stop it with `docker stop` or the Quit button);
|
|
247
|
+
`-e SELECTA_AUTO_QUIT=1` turns it on.
|
|
248
|
+
|
|
249
|
+
Details: [docs/distribution.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/distribution.md#docker).
|
|
250
|
+
|
|
251
|
+
## AI providers and API keys
|
|
252
|
+
|
|
253
|
+
Open **Settings** in Selecta, paste your key and press the test button. Selecta guesses the
|
|
254
|
+
provider from the key; if it cannot, choose it from the menu.
|
|
255
|
+
|
|
256
|
+
| Provider | Where to get a key | Notes |
|
|
257
|
+
| --- | --- | --- |
|
|
258
|
+
| Anthropic | <https://platform.claude.com/> | Sent as `Authorization: Bearer`. Optional **Workspace ID** (`wrkspc_…`), required only for keys scoped to the whole organisation |
|
|
259
|
+
| OpenAI | <https://platform.openai.com/> | Sent as `Authorization: Bearer` |
|
|
260
|
+
| Google Gemini | <https://aistudio.google.com/> | Sent in the `x-goog-api-key` header |
|
|
261
|
+
| Ollama | <https://ollama.com/> | Local, no key; use a model with vision. Default address `http://127.0.0.1:11434` |
|
|
262
|
+
|
|
263
|
+
Default models: Claude Haiku 5.5, GPT-6 Luna and Gemini 2.5 Flash-Lite. Models, prices and
|
|
264
|
+
announced shutdowns: [docs/providers-and-keys.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/providers-and-keys.md).
|
|
265
|
+
|
|
266
|
+
**Indicative costs.** Measured on test sessions with the default models (Claude Haiku 5.5, GPT-6
|
|
267
|
+
Luna): roughly **10–15 US cents per 1,000 photos**; with Claude Sonnet 5.5 about **2 dollars per
|
|
268
|
+
1,000**. Ollama costs nothing. Selecta shows an estimate before every evaluation and the real
|
|
269
|
+
spend afterwards. Costs depend on the model, the profile, how many photos are obvious rejects and
|
|
270
|
+
the provider's current prices ([docs/ai-evaluation.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/ai-evaluation.md#tokens-and-costs)).
|
|
271
|
+
|
|
272
|
+
### Data folder and log
|
|
273
|
+
|
|
274
|
+
| System | Data folder |
|
|
275
|
+
| --- | --- |
|
|
276
|
+
| Windows | `%LOCALAPPDATA%\Selecta` |
|
|
277
|
+
| macOS | `~/Library/Application Support/Selecta` |
|
|
278
|
+
| Linux | `~/.local/share/Selecta` (or `$XDG_DATA_HOME/Selecta`) |
|
|
279
|
+
|
|
280
|
+
It holds `config.toml` (settings and API key, readable only by your user), the database
|
|
281
|
+
`selecta.db`, the preview cache and `logs/selecta.log`. The log contains no API keys and no photo
|
|
282
|
+
paths. Use `--data-dir` or `SELECTA_DATA_DIR` to choose another folder. The thresholds of the local
|
|
283
|
+
analysis can be tuned in `config.toml`
|
|
284
|
+
([docs/local-analysis-thresholds.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/local-analysis-thresholds.md)).
|
|
285
|
+
|
|
286
|
+
### Network problems
|
|
287
|
+
|
|
288
|
+
If the key test fails with a network, certificate or proxy error, run:
|
|
289
|
+
|
|
290
|
+
```bash
|
|
291
|
+
selecta --check-connection
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
It reports where the trusted certificates come from and whether each provider can be reached over
|
|
295
|
+
HTTPS, without sending any key. The result is also written to `selecta.log` (useful on Windows,
|
|
296
|
+
where the executable has no console).
|
|
297
|
+
[Details](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/distribution.md#https-connection-to-the-providers-certificates-and-proxies).
|
|
298
|
+
|
|
299
|
+
## Known limitations
|
|
300
|
+
|
|
301
|
+
- **macOS Intel:** RAW files are read with an older LibRaw (rawpy 0.25.1, LibRaw 0.21), the last
|
|
302
|
+
rawpy release with Intel Mac wheels. Some recent cameras may not be readable; JPEGs work
|
|
303
|
+
normally. The Intel executable bundles Python 3.13 (the others Python 3.14).
|
|
304
|
+
- **Unsigned executables:** Windows and macOS show a warning on first start (see above). Apple
|
|
305
|
+
notarisation is postponed.
|
|
306
|
+
- **Linux executable:** requires glibc 2.35 or later; older distributions can use pipx or Docker.
|
|
307
|
+
- **No authentication:** Selecta is for one user on their own computer. While it runs, another
|
|
308
|
+
user account on the same computer can use it as you, on any folder you can read: browse your
|
|
309
|
+
folders, create sessions and see the previews of any of your photos, export and write XMP files
|
|
310
|
+
in your photo folders, delete sessions, start AI evaluations with your API key, add or remove
|
|
311
|
+
the menu entry. Do not use Selecta on a shared computer; exposing it on a network is not
|
|
312
|
+
supported ([SECURITY.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/SECURITY.md#known-limitations)).
|
|
313
|
+
|
|
314
|
+
## Documentation
|
|
315
|
+
|
|
316
|
+
| Topic | Document |
|
|
317
|
+
| --- | --- |
|
|
318
|
+
| Privacy | [docs/privacy.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/privacy.md) |
|
|
319
|
+
| Providers, keys, models and prices | [docs/providers-and-keys.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/providers-and-keys.md) |
|
|
320
|
+
| Installation, packaging, Docker, executables | [docs/distribution.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/distribution.md) |
|
|
321
|
+
| Local analysis thresholds | [docs/local-analysis-thresholds.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/local-analysis-thresholds.md) |
|
|
322
|
+
| Scene grouping | [docs/scene-grouping.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/scene-grouping.md) |
|
|
323
|
+
| AI evaluation | [docs/ai-evaluation.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/ai-evaluation.md) |
|
|
324
|
+
| Genre profiles, rigor levels, cost estimate | [docs/rigor-and-profiles.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/rigor-and-profiles.md) |
|
|
325
|
+
| Export | [docs/export.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/export.md) |
|
|
326
|
+
| XMP files and taste learning | [docs/xmp-and-learning.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/xmp-and-learning.md) |
|
|
327
|
+
| RAW files | [docs/raw.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/raw.md) |
|
|
328
|
+
|
|
329
|
+
Royalty-free sample photos (CC0) are in `samples/photos/` (sources in
|
|
330
|
+
[samples/SOURCES.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/samples/SOURCES.md)).
|
|
331
|
+
|
|
332
|
+
## Development
|
|
333
|
+
|
|
334
|
+
Requirements: Python 3.12 or later, Node.js 24 (the version used in CI) and npm.
|
|
335
|
+
|
|
336
|
+
**Backend** (from the repository root):
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
python -m venv .venv
|
|
340
|
+
.venv/bin/python -m pip install --require-hashes -r requirements/dev.txt # Windows: .venv\Scripts\python ...
|
|
341
|
+
.venv/bin/python -m pip install --no-deps -e .
|
|
342
|
+
.venv/bin/ruff check . # lint
|
|
343
|
+
.venv/bin/ruff format --check . # formatting
|
|
344
|
+
.venv/bin/pytest # tests (no network)
|
|
345
|
+
.venv/bin/selecta --no-browser # or: .venv/bin/python -m selecta
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
`requirements/dev.txt` pins every dependency with hashes and includes RAW support; alternatively
|
|
349
|
+
`pip install -e ".[dev,raw]"` uses the minimum versions from `pyproject.toml`. How the locks are
|
|
350
|
+
updated: [docs/distribution.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/docs/distribution.md#dependency-lock-files).
|
|
351
|
+
|
|
352
|
+
**Frontend** (`frontend/` folder):
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
cd frontend
|
|
356
|
+
npm ci # install the dependencies from the lock file
|
|
357
|
+
npm run lint # oxlint
|
|
358
|
+
npm test # unit tests
|
|
359
|
+
npm run build # type check (tsc) and production build (vite)
|
|
360
|
+
npm run dev # development server with live reload
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
CI (`.github/workflows/ci.yml`) runs the same checks on every push and pull request, plus a secret
|
|
364
|
+
scan with gitleaks.
|
|
365
|
+
|
|
366
|
+
## Licences
|
|
367
|
+
|
|
368
|
+
- Selecta is released under the **MIT** licence ([LICENSE](https://github.com/LeoFrizzy28/selecta-photo/blob/main/LICENSE)).
|
|
369
|
+
- The executables and the Docker image include **LibRaw**, distributed under the **LGPL 2.1**. The
|
|
370
|
+
exact LibRaw source code used for each build is attached to every
|
|
371
|
+
[Release](https://github.com/LeoFrizzy28/selecta-photo/releases)
|
|
372
|
+
(`libraw-<version>-source-<commit>.tar.gz`); LibRaw is a separate, replaceable file in the
|
|
373
|
+
executable folder.
|
|
374
|
+
- Every executable archive contains **`THIRD_PARTY_LICENSES.txt`** with the licences of all the
|
|
375
|
+
bundled components (Python, OpenCV, numpy, Pillow, OpenSSL and more).
|
|
376
|
+
|
|
377
|
+
## Contributing and security
|
|
378
|
+
|
|
379
|
+
- Contributions are welcome: see [CONTRIBUTING.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/CONTRIBUTING.md) and the
|
|
380
|
+
[Code of Conduct](https://github.com/LeoFrizzy28/selecta-photo/blob/main/CODE_OF_CONDUCT.md).
|
|
381
|
+
- **Do not report vulnerabilities in public issues.** Use GitHub's private reporting: see
|
|
382
|
+
[SECURITY.md](https://github.com/LeoFrizzy28/selecta-photo/blob/main/SECURITY.md).
|