Compare commits
21 Commits
bump-versi
...
cursor/omn
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed2573d8e4 | ||
|
|
9121200bfa | ||
|
|
31cd1783a1 | ||
|
|
4fdccfb805 | ||
|
|
1b933d9042 | ||
|
|
97130034dd | ||
|
|
653d569149 | ||
|
|
757781f7a0 | ||
|
|
0d6c215fa7 | ||
|
|
48d9356d10 | ||
|
|
6d27bceb14 | ||
|
|
f2150f9243 | ||
|
|
95cc827a0a | ||
| 1d18dbd7c4 | |||
|
|
b013181d35 | ||
|
|
94791dcd67 | ||
| 1cad94b8d5 | |||
| f1d9693966 | |||
| 7c50480324 | |||
| f04ca3fe72 | |||
| 31dd69c2aa |
38
AGENTS.md
38
AGENTS.md
@@ -4,7 +4,7 @@
|
||||
configured directory, clearing/resetting specific cells. Interfaces:
|
||||
|
||||
- CLI: `src/xlsx_clean/clean_cells.py` (`beaupy`)
|
||||
- GUI: `src/xlsx_clean/gui_app.py` (Dear PyGui cross-platform desktop window)
|
||||
- GUI: `src/xlsx_clean/gui_app.py` (PyWebView cross-platform desktop window with a local HTML/CSS/JS frontend)
|
||||
|
||||
## Backends
|
||||
|
||||
@@ -15,29 +15,32 @@ configured directory, clearing/resetting specific cells. Interfaces:
|
||||
only). Preserves non-worksheet parts (styles, connections/Power Query definitions,
|
||||
drawings, etc.). Does not calculate formulas or refresh queries.
|
||||
|
||||
Select with `--backend com|ooxml` (CLI) or the Backend dropdown (GUI).
|
||||
Select with `--backend com|ooxml` (CLI) or `config.toml`.
|
||||
|
||||
## Cursor Cloud specific instructions
|
||||
## Cursor Cloud Specific Instructions
|
||||
|
||||
### Platform notes
|
||||
### Platform Notes
|
||||
- `pywin32` has no Linux wheels and is declared as Windows-only
|
||||
(`pywin32>=312; sys_platform == 'win32'`). It is intentionally **not** installed here.
|
||||
- End-to-end COM automation needs Windows + desktop Excel and does not run on this VM.
|
||||
- On Linux, the **ooxml** backend can clear/set cells and write a new workbook when
|
||||
sample files and `XLSX_CLEAN_ROOT` point at a real tree. Without those data files,
|
||||
interactive selection still works for config loading, but globbing finds no templates.
|
||||
- The Dear PyGui GUI runs cross-platform with no system dependencies beyond Python.
|
||||
On headless VMs without a display server the GUI cannot open a window.
|
||||
- PyWebView supports Windows (Edge WebView2), Linux (WebKitGTK), and macOS (WKWebView).
|
||||
Windows needs the separately-installed Microsoft Edge WebView2 Runtime; `pythonnet`
|
||||
does not install it. Linux needs `python3-gi`, GTK, and WebKitGTK typelibs; use the
|
||||
system Python with `--system-site-packages` so apt-provided `gi` remains importable.
|
||||
- On headless machines without a display server the GUI cannot open a native window.
|
||||
|
||||
### Environment
|
||||
- Prefer **uv** for all installs (`uv` in `~/.local/bin`, on PATH via `~/.bashrc`).
|
||||
- Rye is **not** used (`requirements.lock` removed). Use `uv.lock` + `uv sync`.
|
||||
|
||||
```bash
|
||||
# Linux desktop (deps + Desktop shortcut):
|
||||
# Linux desktop (system WebKitGTK deps + venv + Desktop shortcut):
|
||||
./desktop/setup_linux.sh
|
||||
|
||||
# Deps only (any OS):
|
||||
# Dependencies and test tooling (any OS):
|
||||
uv sync
|
||||
```
|
||||
|
||||
@@ -46,18 +49,17 @@ Select with `--backend com|ooxml` (CLI) or the Backend dropdown (GUI).
|
||||
- Note: the `uv`-created `.venv` does not include `pip`; use `uv pip ...` / `uv sync`
|
||||
for package operations.
|
||||
|
||||
### Lint / test / build
|
||||
- There is **no lint config, no test suite, and no build step** in this repo (no ruff/flake8,
|
||||
no pytest, no CI). Don't invent one unless asked.
|
||||
- `pyproject.toml` uses `hatchling` as the build backend; there is nothing to "build" for dev.
|
||||
### Lint / Test / Build
|
||||
- Tests use `pytest`; run `uv run pytest -q`.
|
||||
- `pyproject.toml` uses `hatchling` as the build backend; build a wheel with `uv build`.
|
||||
|
||||
### Running / verifying
|
||||
### Running / Verifying
|
||||
- CLI: `.venv/bin/python -m xlsx_clean.clean_cells` (defaults to `ooxml` on Linux).
|
||||
- GUI: `.venv/bin/python -m xlsx_clean.gui_app`.
|
||||
- Linux setup: `./desktop/setup_linux.sh` (uv sync + shortcut).
|
||||
- Desktop shortcut (Linux): `.venv/bin/python desktop/install_desktop_shortcut.py`
|
||||
- Windows shop-floor: double-click `desktop/Setup.bat` (uv sync + shortcut), or build
|
||||
- GUI: `.venv/bin/python -m xlsx_clean.gui_app [--width 800 --height 600]`.
|
||||
- Linux setup: `./desktop/setup_linux.sh` (GTK/WebKitGTK check, uv sync).
|
||||
- Windows shop-floor: double-click `desktop/Setup.bat` (uv sync), or build
|
||||
an exe with `desktop/build_windows_exe.bat` **on a Windows PC** (cannot build Windows
|
||||
exe here).
|
||||
- Operators create their own shortcut to the GUI launcher (no installer script).
|
||||
- Sanity-check imports:
|
||||
`.venv/bin/python -c "import dearpygui, beaupy; from xlsx_clean import hello; from xlsx_clean.core import load_config, list_sets; from xlsx_clean.ooxml_backend import expand_a1_range; print(hello(), expand_a1_range('A1:B2'))"`.
|
||||
`.venv/bin/python -c "import webview, beaupy; from xlsx_clean import hello; from xlsx_clean.core import load_config, list_sets; from xlsx_clean.ooxml_backend import expand_a1_range; print(webview, hello(), expand_a1_range('A1:B2'))"`.
|
||||
|
||||
63
README.md
63
README.md
@@ -5,21 +5,21 @@ Operator-facing name: **New QC Sheet**.
|
||||
Create a new QC datasheet from the latest matching workbook: clear configured cells,
|
||||
blank notes, write the batch serial, and save under a new `[SERIAL]` name.
|
||||
|
||||
Everyday use is a **Desktop icon** that opens a **single app window**
|
||||
(Set -> Ink -> Serial -> Create).
|
||||
Everyday use opens a **single app window** (Set -> Ink -> Serial -> Create).
|
||||
No terminal commands are required for operators.
|
||||
|
||||
## Quick start (Windows operators)
|
||||
|
||||
1. One-time setup (IT / first install): install [uv](https://docs.astral.sh/uv/getting-started/installation/), clone/copy this project, then double-click
|
||||
**`desktop\Setup.bat`**
|
||||
2. Every day: double-click the **New QC Sheet** icon on the Desktop
|
||||
2. Every day: launch the app via the **New QC Sheet** shortcut
|
||||
3. In the app window: choose **Set**, **Ink color**, enter **Serial**, click **Create datasheet**
|
||||
|
||||
`Setup.bat` creates `.venv` with uv, installs the package, and adds the Desktop shortcut
|
||||
(using the modern icon in `desktop\xlsx-clean.ico`).
|
||||
The shortcut runs `desktop\XlsxClean.vbs` which launches the GUI window.
|
||||
Closing that window stops the app.
|
||||
`Setup.bat` creates `.venv` with uv and installs the package. Operators create their own
|
||||
shortcut to `desktop\XlsxClean.vbs` (uses the modern icon in `desktop\xlsx-clean.ico`).
|
||||
On Windows, install the Microsoft Edge WebView2 Runtime separately before opening the
|
||||
PyWebView GUI; `pythonnet` does not install it. The shortcut runs `desktop\XlsxClean.vbs`
|
||||
which launches the GUI window. Closing that window stops the app.
|
||||
|
||||
When you **Create** with the **com** backend, Excel is maximized and brought to the front
|
||||
after the new workbook is saved.
|
||||
@@ -32,7 +32,7 @@ To put a self-contained app on other PCs (build **on Windows**):
|
||||
|
||||
1. Install [uv](https://docs.astral.sh/uv/getting-started/installation/) if needed
|
||||
2. Double-click **`desktop\build_windows_exe.bat`**
|
||||
3. It creates `dist\New QC Sheet\New QC Sheet.exe` and a Desktop shortcut
|
||||
3. It creates `dist\New QC Sheet\New QC Sheet.exe`
|
||||
4. Copy the whole **`dist\New QC Sheet\`** folder when moving to another machine (keep files together)
|
||||
|
||||
## What the app does
|
||||
@@ -71,15 +71,35 @@ chmod +x desktop/setup_linux.sh
|
||||
./desktop/setup_linux.sh
|
||||
```
|
||||
|
||||
That runs `uv sync` and creates a Desktop shortcut.
|
||||
That installs the required GTK/WebKitGTK packages, creates a venv that can import the
|
||||
apt-provided `gi` bindings, and runs `uv sync`. It uses WebKit2 4.1 when available and
|
||||
supports distro packages that provide WebKit2 4.0. Operators create their own shortcut
|
||||
to `.venv/bin/python -m xlsx_clean.gui_app`.
|
||||
|
||||
**Manual / macOS:**
|
||||
|
||||
The macOS backend defaults to **`ooxml`** (no Excel/COM on macOS). WKWebView is built into
|
||||
macOS, so no extra system packages are needed beyond Python 3.12+ and `uv`.
|
||||
|
||||
From the project root:
|
||||
|
||||
```bash
|
||||
uv sync
|
||||
```
|
||||
|
||||
That creates `.venv` and installs locked deps from `uv.lock`.
|
||||
That creates `.venv` and installs locked deps from `uv.lock` (including the `pyobjc`
|
||||
bindings used by PyWebView).
|
||||
|
||||
To create a double-clickable Finder launcher that runs the GUI:
|
||||
|
||||
```bash
|
||||
chmod +x desktop/XlsxClean.command
|
||||
```
|
||||
|
||||
Then double-click **`desktop/XlsxClean.command`** in Finder. The first launch may require
|
||||
right-click → Open (Gatekeeper) once. The script opens the app window in a new Terminal
|
||||
window; closing that window stops the app. Operators create their own shortcut to this
|
||||
executable.
|
||||
|
||||
Before building the standalone exe:
|
||||
|
||||
@@ -87,23 +107,17 @@ Before building the standalone exe:
|
||||
uv sync --extra desktop
|
||||
```
|
||||
|
||||
Then create the Desktop shortcut (if you did not use `Setup.bat`):
|
||||
|
||||
- **Windows:** double-click `desktop\Install-DesktopShortcut.bat`
|
||||
- **Linux:** `./desktop/setup_linux.sh` (preferred), or
|
||||
`.venv/bin/python desktop/install_desktop_shortcut.py`
|
||||
|
||||
Optional: Edit `~/.xlsx-clean/config.toml` (created automatically on first run) if workbooks are not under the default `D:\\OpenCloud` paths.
|
||||
|
||||
## Developer interfaces
|
||||
|
||||
These are optional; operators should use the Desktop icon.
|
||||
These are optional; operators use the shortcut to the app executable.
|
||||
|
||||
**GUI (desktop window)**
|
||||
|
||||
```bash
|
||||
.venv/bin/python -m xlsx_clean.gui_app
|
||||
# Windows: .venv\Scripts\python.exe -m xlsx_clean.gui_app
|
||||
.venv/bin/python -m xlsx_clean.gui_app --width 800 --height 600
|
||||
# Windows: .venv\Scripts\python.exe -m xlsx_clean.gui_app --width 800 --height 600
|
||||
```
|
||||
|
||||
**CLI**
|
||||
@@ -127,11 +141,10 @@ Windows CLI helper: `src\xlsx_clean\new_xslx.bat`
|
||||
| Path | Purpose |
|
||||
|------|---------|
|
||||
| `desktop/xlsx-clean.ico` | Modern Windows Desktop / exe icon |
|
||||
| `desktop/Setup.bat` | Windows one-time setup via uv + Desktop shortcut |
|
||||
| `desktop/setup_linux.sh` | Linux one-time setup (uv sync + shortcut) |
|
||||
| `desktop/Install-DesktopShortcut.bat` | Create Desktop icon only (Windows) |
|
||||
| `desktop/XlsxClean.vbs` | Silent double-click launcher |
|
||||
| `desktop/XlsxClean.bat` | Launcher with visible console |
|
||||
| `desktop/Setup.bat` | Windows one-time setup via uv |
|
||||
| `desktop/setup_linux.sh` | Linux one-time setup (uv sync) |
|
||||
| `desktop/XlsxClean.command` | macOS double-click launcher (opens GUI in Terminal) |
|
||||
| `desktop/XlsxClean.vbs` | Silent Windows double-click launcher |
|
||||
| `desktop/XlsxClean.bat` | Windows launcher with visible console |
|
||||
| `desktop/build_windows_exe.bat` | Build standalone `New QC Sheet.exe` with uv |
|
||||
| `desktop/install_desktop_shortcut.py` | Create Desktop shortcut (Linux) |
|
||||
| `packaging/xlsx_clean.spec` | PyInstaller spec |
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
@echo off
|
||||
REM Create a Desktop shortcut that points at desktop\XlsxClean.vbs
|
||||
setlocal
|
||||
cd /d "%~dp0\.."
|
||||
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Install-DesktopShortcut.ps1"
|
||||
if errorlevel 1 (
|
||||
echo Failed to create desktop shortcut.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
echo Desktop shortcut created: New QC Sheet
|
||||
pause
|
||||
@@ -1,29 +0,0 @@
|
||||
# Creates %USERPROFILE%\Desktop\New QC Sheet.lnk -> desktop\XlsxClean.vbs
|
||||
$ErrorActionPreference = "Stop"
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
$target = Join-Path $PSScriptRoot "XlsxClean.vbs"
|
||||
$desktop = [Environment]::GetFolderPath("Desktop")
|
||||
$shortcutPath = Join-Path $desktop "New QC Sheet.lnk"
|
||||
|
||||
if (-not (Test-Path $target)) {
|
||||
throw "Launcher not found: $target"
|
||||
}
|
||||
|
||||
# Remove older shortcut name if present
|
||||
$legacy = Join-Path $desktop "XlsxClean.lnk"
|
||||
if (Test-Path $legacy) {
|
||||
Remove-Item $legacy -Force
|
||||
}
|
||||
|
||||
$wsh = New-Object -ComObject WScript.Shell
|
||||
$shortcut = $wsh.CreateShortcut($shortcutPath)
|
||||
$shortcut.TargetPath = $target
|
||||
$shortcut.WorkingDirectory = $repoRoot
|
||||
$shortcut.WindowStyle = 7
|
||||
$shortcut.Description = "Open New QC Sheet"
|
||||
$iconCandidate = Join-Path $PSScriptRoot "xlsx-clean.ico"
|
||||
if (Test-Path $iconCandidate) {
|
||||
$shortcut.IconLocation = "$iconCandidate,0"
|
||||
}
|
||||
$shortcut.Save()
|
||||
Write-Host "Created $shortcutPath"
|
||||
@@ -1,5 +1,5 @@
|
||||
@echo off
|
||||
REM One-time Windows setup with uv: sync deps from uv.lock, Desktop shortcut.
|
||||
REM One-time Windows setup with uv: sync deps from uv.lock.
|
||||
setlocal
|
||||
cd /d "%~dp0\.."
|
||||
|
||||
@@ -20,14 +20,6 @@ if errorlevel 1 (
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Creating Desktop shortcut...
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Install-DesktopShortcut.ps1"
|
||||
if errorlevel 1 (
|
||||
echo Desktop shortcut step failed.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Setup complete. Double-click the New QC Sheet icon on your Desktop.
|
||||
echo Setup complete. Create your own shortcut to desktop\XlsxClean.vbs.
|
||||
pause
|
||||
|
||||
14
desktop/XlsxClean.command
Executable file
14
desktop/XlsxClean.command
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Operator launcher for New QC Sheet on macOS.
|
||||
# Double-click in Finder (or run from Terminal). Opens the GUI in a new Terminal window.
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
if [[ ! -x .venv/bin/python ]]; then
|
||||
echo "Virtual environment not found. Run 'uv sync' first, or use desktop/setup_macos.sh." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec ./.venv/bin/python -m xlsx_clean.gui_app
|
||||
@@ -1,80 +0,0 @@
|
||||
"""Install a Desktop shortcut that launches New QC Sheet."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
DESKTOP_DIR = Path(__file__).resolve().parent
|
||||
APP_DISPLAY_NAME = "New QC Sheet"
|
||||
|
||||
|
||||
def _user_desktop() -> Path:
|
||||
if sys.platform == "win32":
|
||||
return Path(os.environ.get("USERPROFILE", str(Path.home()))) / "Desktop"
|
||||
# Linux / macOS
|
||||
xdg = os.environ.get("XDG_DESKTOP_DIR")
|
||||
if xdg:
|
||||
return Path(xdg)
|
||||
return Path.home() / "Desktop"
|
||||
|
||||
|
||||
def install_windows() -> Path:
|
||||
ps1 = DESKTOP_DIR / "Install-DesktopShortcut.ps1"
|
||||
subprocess.run(
|
||||
[
|
||||
"powershell",
|
||||
"-NoProfile",
|
||||
"-ExecutionPolicy",
|
||||
"Bypass",
|
||||
"-File",
|
||||
str(ps1),
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
return _user_desktop() / f"{APP_DISPLAY_NAME}.lnk"
|
||||
|
||||
|
||||
def install_linux() -> Path:
|
||||
desktop = _user_desktop()
|
||||
desktop.mkdir(parents=True, exist_ok=True)
|
||||
python = REPO_ROOT / ".venv" / "bin" / "python"
|
||||
if not python.is_file():
|
||||
python = Path(sys.executable)
|
||||
out = desktop / f"{APP_DISPLAY_NAME}.desktop"
|
||||
legacy = desktop / "XlsxClean.desktop"
|
||||
if legacy.is_file():
|
||||
legacy.unlink()
|
||||
exec_line = f"{python} -m xlsx_clean.gui_app"
|
||||
icon_png = DESKTOP_DIR / "xlsx-clean.png"
|
||||
icon_line = str(icon_png) if icon_png.is_file() else "applications-office"
|
||||
content = f"""[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name={APP_DISPLAY_NAME}
|
||||
Comment=Create a new QC datasheet
|
||||
Exec={exec_line}
|
||||
Path={REPO_ROOT}
|
||||
Icon={icon_line}
|
||||
Terminal=false
|
||||
Categories=Office;
|
||||
StartupNotify=true
|
||||
"""
|
||||
out.write_text(content, encoding="utf-8")
|
||||
out.chmod(out.stat().st_mode | 0o111)
|
||||
return out
|
||||
|
||||
|
||||
def main() -> None:
|
||||
if sys.platform == "win32":
|
||||
path = install_windows()
|
||||
else:
|
||||
path = install_linux()
|
||||
print(f"Desktop shortcut created: {path}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -1,23 +1,107 @@
|
||||
#!/usr/bin/env bash
|
||||
# Operator setup for New QC Sheet on Linux desktops.
|
||||
# Installs deps with uv and creates a Desktop shortcut.
|
||||
# Operator setup for New QC Sheet on Debian/Ubuntu Linux desktops.
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
SYS_PY=/usr/bin/python3
|
||||
|
||||
if ! command -v uv >/dev/null 2>&1; then
|
||||
echo "uv not found on PATH. Install uv first: https://docs.astral.sh/uv/" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Syncing dependencies..."
|
||||
uv sync
|
||||
if ! command -v apt-get >/dev/null 2>&1; then
|
||||
echo "This setup script requires apt-get (Debian/Ubuntu). Install python3-gi,"
|
||||
echo "gir1.2-gtk-3.0, and gir1.2-webkit2-4.1 (or WebKit2 4.0) manually." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing Desktop shortcut..."
|
||||
.venv/bin/python desktop/install_desktop_shortcut.py
|
||||
if [[ ! -x "$SYS_PY" ]]; then
|
||||
echo "System Python not found at $SYS_PY" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
packages=(python3-gi gir1.2-gtk-3.0)
|
||||
if apt-cache show gir1.2-webkit2-4.1 >/dev/null 2>&1; then
|
||||
packages+=(gir1.2-webkit2-4.1)
|
||||
elif apt-cache show gir1.2-webkit2-4.0 >/dev/null 2>&1; then
|
||||
packages+=(gir1.2-webkit2-4.0)
|
||||
else
|
||||
echo "Neither gir1.2-webkit2-4.1 nor gir1.2-webkit2-4.0 is available." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
missing=()
|
||||
for package in "${packages[@]}"; do
|
||||
if ! dpkg-query -W -f='${db:Status-Status}' "$package" 2>/dev/null | grep -qx installed; then
|
||||
missing+=("$package")
|
||||
fi
|
||||
done
|
||||
|
||||
if ((${#missing[@]})); then
|
||||
echo "Installing GTK/WebKitGTK requirements: ${missing[*]}"
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y "${missing[@]}"
|
||||
else
|
||||
echo "GTK/WebKitGTK requirements already installed."
|
||||
fi
|
||||
|
||||
if ! "$SYS_PY" -c 'import gi' >/dev/null 2>&1; then
|
||||
echo "System $SYS_PY cannot import gi. Install python3-gi." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
enable_system_site_packages() {
|
||||
local cfg=.venv/pyvenv.cfg
|
||||
if [[ ! -f "$cfg" ]]; then
|
||||
return 1
|
||||
fi
|
||||
if grep -q '^include-system-site-packages' "$cfg"; then
|
||||
sed -i 's/^include-system-site-packages = .*/include-system-site-packages = true/' "$cfg"
|
||||
else
|
||||
printf '\ninclude-system-site-packages = true\n' >> "$cfg"
|
||||
fi
|
||||
}
|
||||
|
||||
if [[ ! -x .venv/bin/python ]] || ! .venv/bin/python -c 'import gi' >/dev/null 2>&1; then
|
||||
echo "Creating venv with the system Python and system site packages..."
|
||||
rm -rf .venv
|
||||
uv venv --python /usr/bin/python3 --no-managed-python --system-site-packages
|
||||
fi
|
||||
|
||||
echo "Syncing dependencies..."
|
||||
# Pin the same interpreter so uv does not honor .python-version (3.12) and
|
||||
# recreate a managed venv without apt gi (python3-gi).
|
||||
uv sync --python /usr/bin/python3 --no-managed-python
|
||||
|
||||
if ! .venv/bin/python -c 'import gi' >/dev/null 2>&1; then
|
||||
echo "Restoring system site packages on .venv so apt gi is importable..."
|
||||
enable_system_site_packages
|
||||
fi
|
||||
|
||||
venv_ver="$(.venv/bin/python -c 'import sys; print("%d.%d" % sys.version_info[:2])')"
|
||||
sys_ver="$("$SYS_PY" -c 'import sys; print("%d.%d" % sys.version_info[:2])')"
|
||||
if [[ "$venv_ver" != "$sys_ver" ]]; then
|
||||
echo "venv Python $venv_ver does not match system Python $sys_ver at $SYS_PY." >&2
|
||||
echo "uv likely honored .python-version instead of the system interpreter." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Verifying GTK and WebKit2 bindings..."
|
||||
.venv/bin/python -c '
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
try:
|
||||
gi.require_version("WebKit2", "4.1")
|
||||
except ValueError:
|
||||
gi.require_version("WebKit2", "4.0")
|
||||
from gi.repository import Gtk, WebKit2
|
||||
print("GTK/WebKit2 bindings available")
|
||||
'
|
||||
|
||||
echo
|
||||
echo "Done. Launch with:"
|
||||
echo " .venv/bin/python -m xlsx_clean.gui_app"
|
||||
echo "or use the Desktop shortcut."
|
||||
echo "Create your own shortcut to that command."
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Version=1.0
|
||||
Name=New QC Sheet
|
||||
Comment=Create a new QC datasheet
|
||||
# Exec is filled by install_desktop_shortcut.py; placeholder for manual edits:
|
||||
Exec=bash -lc 'cd "$(dirname "%k")/.." && .venv/bin/python -m xlsx_clean.gui_app'
|
||||
Path=
|
||||
Icon=applications-office
|
||||
Terminal=false
|
||||
Categories=Office;
|
||||
StartupNotify=true
|
||||
@@ -8,14 +8,20 @@ Or manually:
|
||||
pyinstaller packaging/xlsx_clean.spec
|
||||
"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
from PyInstaller.utils.hooks import collect_all
|
||||
|
||||
block_cipher = None
|
||||
|
||||
# SPECPATH is set by PyInstaller to the folder containing this spec file
|
||||
ROOT_DIR = os.path.abspath(os.path.join(SPECPATH, ".."))
|
||||
|
||||
datas = [
|
||||
("src/xlsx_clean/file_data.csv", "xlsx_clean"),
|
||||
("src/xlsx_clean/strings.txt", "xlsx_clean"),
|
||||
("src/xlsx_clean/fonts", "xlsx_clean/fonts"),
|
||||
(os.path.join(ROOT_DIR, "src", "xlsx_clean", "file_data.csv"), "xlsx_clean"),
|
||||
(os.path.join(ROOT_DIR, "src", "xlsx_clean", "strings.txt"), "xlsx_clean"),
|
||||
(os.path.join(ROOT_DIR, "src", "xlsx_clean", "fonts"), "xlsx_clean/fonts"),
|
||||
(os.path.join(ROOT_DIR, "src", "xlsx_clean", "ui"), "xlsx_clean/ui"),
|
||||
]
|
||||
binaries = []
|
||||
hiddenimports = [
|
||||
@@ -28,14 +34,21 @@ hiddenimports = [
|
||||
"xlsx_clean.paths",
|
||||
]
|
||||
|
||||
tmp_ret = collect_all("dearpygui")
|
||||
datas += tmp_ret[0]
|
||||
binaries += tmp_ret[1]
|
||||
hiddenimports += tmp_ret[2]
|
||||
webview_ret = collect_all("webview")
|
||||
datas += webview_ret[0]
|
||||
binaries += webview_ret[1]
|
||||
hiddenimports += webview_ret[2]
|
||||
|
||||
if sys.platform == "win32":
|
||||
clr_ret = collect_all("clr_loader")
|
||||
datas += clr_ret[0]
|
||||
binaries += clr_ret[1]
|
||||
hiddenimports += clr_ret[2]
|
||||
hiddenimports += ["clr", "clr_loader", "pythonnet"]
|
||||
|
||||
a = Analysis(
|
||||
["src/xlsx_clean/gui_app.py"],
|
||||
pathex=["."],
|
||||
[os.path.join(ROOT_DIR, "src", "xlsx_clean", "gui_app.py")],
|
||||
pathex=[ROOT_DIR],
|
||||
binaries=binaries,
|
||||
datas=datas,
|
||||
hiddenimports=hiddenimports,
|
||||
@@ -67,7 +80,7 @@ exe = EXE(
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
icon="desktop/xlsx-clean.ico",
|
||||
icon=os.path.join(ROOT_DIR, "desktop", "xlsx-clean.ico"),
|
||||
)
|
||||
|
||||
coll = COLLECT(
|
||||
|
||||
@@ -7,7 +7,7 @@ authors = [
|
||||
]
|
||||
dependencies = [
|
||||
"beaupy>=3.12.0",
|
||||
"dearpygui>=2.0.0",
|
||||
"pywebview>=5.0",
|
||||
"pywin32>=312; sys_platform == 'win32'",
|
||||
]
|
||||
readme = "README.md"
|
||||
@@ -36,10 +36,18 @@ packages = ["src/xlsx_clean"]
|
||||
"src/xlsx_clean/file_data.csv" = "xlsx_clean/file_data.csv"
|
||||
"src/xlsx_clean/strings.txt" = "xlsx_clean/strings.txt"
|
||||
"src/xlsx_clean/new_xslx.bat" = "xlsx_clean/new_xslx.bat"
|
||||
"src/xlsx_clean/fonts" = "xlsx_clean/fonts"
|
||||
|
||||
[dependency-groups]
|
||||
test = [
|
||||
"pytest>=8.0",
|
||||
]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
|
||||
[tool.uv]
|
||||
package = true
|
||||
default-groups = ["test"]
|
||||
|
||||
# Version bumps: `uvx bump-my-version bump patch|minor|major`
|
||||
# current_version falls back to [project].version above.
|
||||
|
||||
@@ -1,298 +1,139 @@
|
||||
"""Cross-platform Dear PyGui desktop GUI for New QC Sheet."""
|
||||
"""PyWebView desktop GUI for New QC Sheet."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
from importlib.metadata import PackageNotFoundError, version as package_version
|
||||
|
||||
import dearpygui.dearpygui as dpg
|
||||
import webview
|
||||
|
||||
from xlsx_clean.core import (
|
||||
create_datasheet,
|
||||
list_ink_colors,
|
||||
list_sets,
|
||||
load_config,
|
||||
)
|
||||
from xlsx_clean.paths import default_backend, package_file
|
||||
from xlsx_clean.core import create_datasheet, list_ink_colors, list_sets, load_config
|
||||
from xlsx_clean.app_logging import get_logger
|
||||
from xlsx_clean.paths import package_file
|
||||
|
||||
try:
|
||||
_VERSION = package_version('xlsx-clean')
|
||||
_VERSION = package_version("xlsx-clean")
|
||||
except PackageNotFoundError:
|
||||
_VERSION = 'dev'
|
||||
|
||||
# Module-level variables
|
||||
rows = []
|
||||
addin_paths = []
|
||||
config = {}
|
||||
_VERSION = "dev"
|
||||
|
||||
|
||||
# Tags
|
||||
SET_COMBO = "set_combo"
|
||||
INK_COMBO = "ink_combo"
|
||||
SERIAL_INPUT = "serial_input"
|
||||
STATUS_TEXT = "status_text"
|
||||
HEADING_FONT = "heading_font"
|
||||
class Api:
|
||||
"""Python functions exposed to JavaScript via ``window.pywebview.api``."""
|
||||
|
||||
def on_set_change(sender, app_data):
|
||||
"""Callback when the set combo changes."""
|
||||
new_inks = list_ink_colors(rows, app_data)
|
||||
dpg.configure_item(INK_COMBO, items=new_inks)
|
||||
dpg.set_value(INK_COMBO, new_inks[0] if new_inks else '')
|
||||
def __init__(self) -> None:
|
||||
self.rows: list[dict] = []
|
||||
self.addin_paths: list[str] = []
|
||||
self.config: dict = {}
|
||||
self._initial_data: dict | None = None
|
||||
self._initialization_error: Exception | None = None
|
||||
|
||||
def on_create(sender, app_data):
|
||||
"""Callback for the Create datasheet button."""
|
||||
selected_set = dpg.get_value(SET_COMBO)
|
||||
selected_dir = dpg.get_value(INK_COMBO)
|
||||
batch_serial = dpg.get_value(SERIAL_INPUT)
|
||||
def initialize(self) -> None:
|
||||
"""Load configuration before the local frontend is opened."""
|
||||
if self._initial_data is not None or self._initialization_error is not None:
|
||||
return
|
||||
try:
|
||||
content, self.rows, self.config = load_config()
|
||||
sets = list_sets(self.rows)
|
||||
self.addin_paths = content[3:5] if len(content) >= 5 else []
|
||||
self._initial_data = {
|
||||
"sets": sets,
|
||||
"inks": list_ink_colors(self.rows, sets[0]) if sets else [],
|
||||
"labels": {
|
||||
"set": content[0] if len(content) > 0 else "Select Set",
|
||||
"ink": content[1] if len(content) > 1 else "Select Ink Color",
|
||||
"serial": content[2] if len(content) > 2 else "Serial:",
|
||||
},
|
||||
"version": _VERSION,
|
||||
}
|
||||
except Exception as exc: # noqa: BLE001 - serialize bridge failures to JS
|
||||
self._initialization_error = exc
|
||||
|
||||
try:
|
||||
result = create_datasheet(
|
||||
selected_set=selected_set,
|
||||
selected_dir=selected_dir,
|
||||
batch_serial=batch_serial,
|
||||
backend=None,
|
||||
rows=rows,
|
||||
addin_paths=addin_paths,
|
||||
config=config
|
||||
)
|
||||
def get_initial_data(self) -> dict:
|
||||
"""Return configuration-derived values for the initial page render."""
|
||||
self.initialize()
|
||||
if self._initialization_error is not None:
|
||||
raise self._initialization_error
|
||||
assert self._initial_data is not None
|
||||
return self._initial_data
|
||||
|
||||
msg = result.message
|
||||
if result.template:
|
||||
msg += f"\nTemplate: {result.template}"
|
||||
if result.destination:
|
||||
msg += f"\nDestination: {result.destination}"
|
||||
if result.backend:
|
||||
msg += f"\nBackend: {result.backend}"
|
||||
def get_inks(self, selected_set: str) -> list[str]:
|
||||
"""Return ink colors for a selected set."""
|
||||
return list_ink_colors(self.rows, selected_set)
|
||||
|
||||
dpg.set_value(STATUS_TEXT, msg)
|
||||
def create(
|
||||
self, selected_set: str, selected_dir: str, batch_serial: str
|
||||
) -> dict:
|
||||
"""Create a datasheet and return a JSON-safe result.
|
||||
|
||||
if result.skipped:
|
||||
dpg.configure_item(STATUS_TEXT, color=(230, 180, 30)) # Yellow
|
||||
elif result.ok:
|
||||
dpg.configure_item(STATUS_TEXT, color=(0, 200, 80)) # Green
|
||||
else:
|
||||
dpg.configure_item(STATUS_TEXT, color=(220, 60, 60)) # Red
|
||||
except Exception as e:
|
||||
dpg.set_value(STATUS_TEXT, f"Error: {e}")
|
||||
dpg.configure_item(STATUS_TEXT, color=(220, 60, 60))
|
||||
|
||||
def _create_modern_theme() -> int:
|
||||
"""Build a global theme that gives DPG widgets a modern, web-like feel, matching the HTML demo."""
|
||||
with dpg.theme() as theme:
|
||||
with dpg.theme_component(dpg.mvAll):
|
||||
# Rounded corners (like CSS border-radius)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_FrameRounding, 4)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_PopupRounding, 4)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_WindowRounding, 8)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_GrabRounding, 4)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_TabRounding, 4)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_ChildRounding, 4)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_ScrollbarRounding, 4)
|
||||
|
||||
# Generous padding (like CSS padding)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_FramePadding, 12, 10)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_ItemSpacing, 10, 10)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_ItemInnerSpacing, 8, 6)
|
||||
dpg.add_theme_style(dpg.mvStyleVar_WindowPadding, 48, 48)
|
||||
|
||||
# Scrollbar
|
||||
dpg.add_theme_style(dpg.mvStyleVar_ScrollbarSize, 12)
|
||||
|
||||
# Colors from demo.html
|
||||
bg = (248, 250, 252, 255) # Slate 50 (#f8fafc)
|
||||
surface = (255, 255, 255, 255) # White (#ffffff)
|
||||
frame = (255, 255, 255, 255) # White (inputs)
|
||||
frame_hover = (240, 253, 250, 255) # Teal 50 (#f0fdfa)
|
||||
frame_active = (204, 251, 241, 255) # Teal 100 (#ccfbf1)
|
||||
accent = (15, 118, 110, 255) # Teal 700 (#0f766e) - Primary
|
||||
accent_hover = (17, 94, 89, 255) # Teal 800 (#115e59) - Secondary
|
||||
accent_active = (19, 78, 74, 255) # Teal 900 (#134e4a)
|
||||
text = (15, 23, 42, 255) # Slate 900 (#0f172a)
|
||||
text_dim = (100, 116, 139, 255) # Slate 500 (#64748b)
|
||||
border = (203, 213, 225, 255) # Slate 300 (#cbd5e1)
|
||||
popup_bg = (255, 255, 255, 255) # White dropdowns
|
||||
|
||||
# Window
|
||||
dpg.add_theme_color(dpg.mvThemeCol_WindowBg, bg)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_PopupBg, popup_bg)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_TitleBg, bg)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_TitleBgActive, bg)
|
||||
|
||||
# Frame (combos, inputs)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_FrameBg, frame)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_FrameBgHovered, frame_hover)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_FrameBgActive, frame_active)
|
||||
|
||||
# Border
|
||||
dpg.add_theme_color(dpg.mvThemeCol_Border, border)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_BorderShadow, (0, 0, 0, 0))
|
||||
dpg.add_theme_style(dpg.mvStyleVar_FrameBorderSize, 1)
|
||||
|
||||
# Button (Combo box drop arrows) - blend into frame
|
||||
dpg.add_theme_color(dpg.mvThemeCol_Button, frame)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ButtonHovered, frame_hover)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ButtonActive, frame_active)
|
||||
|
||||
# Header (combo dropdown items on hover)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_Header, frame_hover)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_HeaderHovered, frame_active)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_HeaderActive, accent)
|
||||
|
||||
# Text
|
||||
dpg.add_theme_color(dpg.mvThemeCol_Text, text)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_TextDisabled, text_dim)
|
||||
|
||||
# Separator
|
||||
dpg.add_theme_color(dpg.mvThemeCol_Separator, border)
|
||||
|
||||
# Scrollbar
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ScrollbarBg, bg)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ScrollbarGrab, border)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ScrollbarGrabHovered, text_dim)
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ScrollbarGrabActive, text)
|
||||
|
||||
# Check mark / selection
|
||||
dpg.add_theme_color(dpg.mvThemeCol_CheckMark, accent)
|
||||
|
||||
return theme
|
||||
Unexpected exceptions are serialized into the result contract so the
|
||||
frontend always sees the same shape, regardless of platform-specific
|
||||
bridge behavior.
|
||||
"""
|
||||
log = get_logger()
|
||||
try:
|
||||
result = create_datasheet(
|
||||
selected_set=selected_set,
|
||||
selected_dir=selected_dir,
|
||||
batch_serial=batch_serial,
|
||||
backend=None,
|
||||
rows=self.rows,
|
||||
addin_paths=self.addin_paths,
|
||||
config=self.config,
|
||||
)
|
||||
except Exception as exc: # noqa: BLE001 - serialize bridge failures to JS
|
||||
log.exception(
|
||||
"Unexpected error in Api.create(set=%r, dir=%r, serial=%r)",
|
||||
selected_set,
|
||||
selected_dir,
|
||||
batch_serial,
|
||||
)
|
||||
return {
|
||||
"ok": False,
|
||||
"skipped": False,
|
||||
"message": f"Unexpected error: {exc}",
|
||||
"template": None,
|
||||
"destination": None,
|
||||
"backend": None,
|
||||
}
|
||||
return {
|
||||
"ok": result.ok,
|
||||
"skipped": result.skipped,
|
||||
"message": result.message,
|
||||
"template": str(result.template) if result.template is not None else None,
|
||||
"destination": (
|
||||
str(result.destination) if result.destination is not None else None
|
||||
),
|
||||
"backend": result.backend,
|
||||
}
|
||||
|
||||
|
||||
|
||||
def parse_args() -> argparse.Namespace:
|
||||
def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
|
||||
"""Parse GUI dimensions without changing process-global arguments."""
|
||||
parser = argparse.ArgumentParser(
|
||||
description="New QC Sheet — Dear PyGui desktop application.",
|
||||
description="Start the New QC Sheet PyWebView interface."
|
||||
)
|
||||
parser.add_argument('--width', type=int, default=650, help='Window width')
|
||||
parser.add_argument('--height', type=int, default=700, help='Window height')
|
||||
return parser.parse_args()
|
||||
parser.add_argument("--width", type=int, default=800, help="Window width")
|
||||
parser.add_argument("--height", type=int, default=600, help="Window height")
|
||||
return parser.parse_args(argv)
|
||||
|
||||
|
||||
def main() -> None:
|
||||
global rows, addin_paths, config
|
||||
args = parse_args()
|
||||
|
||||
dpg.create_context()
|
||||
|
||||
# --- Modern theme ---------------------------------------------------
|
||||
modern_theme = _create_modern_theme()
|
||||
dpg.bind_theme(modern_theme)
|
||||
|
||||
# --- Load Inter font ------------------------------------------------
|
||||
font_regular = package_file("fonts/Inter-Regular.ttf")
|
||||
font_bold = package_file("fonts/Inter-Bold.ttf")
|
||||
default_font = None
|
||||
heading_font = None
|
||||
label_font = None
|
||||
if font_regular.is_file():
|
||||
with dpg.font_registry():
|
||||
default_font = dpg.add_font(str(font_regular), 18)
|
||||
label_font = dpg.add_font(str(font_regular), 14)
|
||||
if font_bold.is_file():
|
||||
heading_font = dpg.add_font(str(font_bold), 28, tag=HEADING_FONT)
|
||||
|
||||
# Load config and initialize variables
|
||||
sets = []
|
||||
initial_inks = []
|
||||
error_msg = ""
|
||||
|
||||
label_set = 'Select Set'
|
||||
label_ink = 'Select Ink Color'
|
||||
label_serial = 'Serial:'
|
||||
|
||||
try:
|
||||
content, loaded_rows, loaded_config = load_config()
|
||||
rows = loaded_rows
|
||||
config = loaded_config
|
||||
if len(content) >= 5:
|
||||
label_set = content[0]
|
||||
label_ink = content[1]
|
||||
label_serial = content[2]
|
||||
addin_paths = content[3:5]
|
||||
|
||||
sets = list_sets(rows)
|
||||
if sets:
|
||||
initial_inks = list_ink_colors(rows, sets[0])
|
||||
except Exception as e:
|
||||
error_msg = f"Failed to load config: {e}"
|
||||
|
||||
with dpg.theme() as tight_theme:
|
||||
with dpg.theme_component(dpg.mvAll):
|
||||
dpg.add_theme_style(dpg.mvStyleVar_ItemSpacing, 10, -8)
|
||||
|
||||
with dpg.theme() as normal_spacing_theme:
|
||||
with dpg.theme_component(dpg.mvAll):
|
||||
dpg.add_theme_style(dpg.mvStyleVar_ItemSpacing, 10, 10)
|
||||
|
||||
with dpg.theme() as btn_theme:
|
||||
with dpg.theme_component(dpg.mvButton):
|
||||
dpg.add_theme_color(dpg.mvThemeCol_Text, (255, 255, 255, 255))
|
||||
dpg.add_theme_color(dpg.mvThemeCol_Button, (15, 118, 110, 255))
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ButtonHovered, (17, 94, 89, 255))
|
||||
dpg.add_theme_color(dpg.mvThemeCol_ButtonActive, (19, 78, 74, 255))
|
||||
|
||||
with dpg.window(tag="primary_window"):
|
||||
if default_font:
|
||||
dpg.bind_font(default_font)
|
||||
|
||||
title = dpg.add_text('New QC Sheet', color=(17, 94, 89, 255))
|
||||
if heading_font:
|
||||
dpg.bind_item_font(title, heading_font)
|
||||
dpg.add_text(f"v{_VERSION}", color=(100, 106, 120))
|
||||
dpg.add_spacer(height=4)
|
||||
dpg.add_separator()
|
||||
dpg.add_spacer(height=10)
|
||||
|
||||
def add_floating_label(text):
|
||||
lbl = dpg.add_text(text, color=(15, 118, 110, 255))
|
||||
if label_font:
|
||||
dpg.bind_item_font(lbl, label_font)
|
||||
|
||||
with dpg.group() as g1:
|
||||
add_floating_label(label_set)
|
||||
c1 = dpg.add_combo(items=sets, default_value=sets[0] if sets else '',
|
||||
tag=SET_COMBO, callback=on_set_change, width=-1)
|
||||
dpg.bind_item_theme(c1, normal_spacing_theme)
|
||||
dpg.bind_item_theme(g1, tight_theme)
|
||||
dpg.add_spacer(height=8)
|
||||
|
||||
with dpg.group() as g2:
|
||||
add_floating_label(label_ink)
|
||||
c2 = dpg.add_combo(items=initial_inks,
|
||||
default_value=initial_inks[0] if initial_inks else '',
|
||||
tag=INK_COMBO, width=-1)
|
||||
dpg.bind_item_theme(c2, normal_spacing_theme)
|
||||
dpg.bind_item_theme(g2, tight_theme)
|
||||
dpg.add_spacer(height=8)
|
||||
|
||||
with dpg.group() as g3:
|
||||
add_floating_label(label_serial)
|
||||
c3 = dpg.add_input_text(tag=SERIAL_INPUT, width=-1, hint="e.g. 1234/A")
|
||||
dpg.bind_item_theme(c3, normal_spacing_theme)
|
||||
dpg.bind_item_theme(g3, tight_theme)
|
||||
dpg.add_spacer(height=10)
|
||||
|
||||
dpg.add_separator()
|
||||
dpg.add_spacer(height=10)
|
||||
|
||||
btn = dpg.add_button(label='Create datasheet', width=-1, height=38,
|
||||
callback=on_create)
|
||||
dpg.bind_item_theme(btn, btn_theme)
|
||||
dpg.add_spacer(height=14)
|
||||
|
||||
dpg.add_text(error_msg, tag=STATUS_TEXT, wrap=args.width - 40)
|
||||
if error_msg:
|
||||
dpg.configure_item(STATUS_TEXT, color=(220, 60, 60))
|
||||
|
||||
dpg.create_viewport(title=f'New QC Sheet · v{_VERSION}',
|
||||
width=args.width, height=args.height)
|
||||
dpg.setup_dearpygui()
|
||||
dpg.show_viewport()
|
||||
dpg.set_primary_window("primary_window", True)
|
||||
dpg.start_dearpygui()
|
||||
dpg.destroy_context()
|
||||
def main(argv: list[str] | None = None) -> None:
|
||||
"""Open the native PyWebView window."""
|
||||
args = parse_args(argv)
|
||||
api = Api()
|
||||
api.initialize()
|
||||
index_html = package_file("ui/index.html")
|
||||
webview.create_window(
|
||||
title=f"New QC Sheet · v{_VERSION}",
|
||||
url=index_html.as_uri(),
|
||||
js_api=api,
|
||||
width=args.width,
|
||||
height=args.height,
|
||||
min_size=(450, 400),
|
||||
background_color="#0b0e14",
|
||||
)
|
||||
webview.start()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
758
src/xlsx_clean/ui/index.html
Normal file
758
src/xlsx_clean/ui/index.html
Normal file
@@ -0,0 +1,758 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>New QC Sheet</title>
|
||||
<script>
|
||||
try {
|
||||
if (localStorage.getItem("xlsx-clean-theme") === "light") {
|
||||
document.documentElement.setAttribute("data-theme", "light");
|
||||
}
|
||||
} catch (error) {
|
||||
/* localStorage may be unavailable in some WebView embeds */
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "Inter";
|
||||
src: url("../fonts/Inter-Regular.ttf") format("truetype");
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Inter";
|
||||
src: url("../fonts/Inter-Bold.ttf") format("truetype");
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
--primary: #e54d5e;
|
||||
--primary-hover: #c93d4e;
|
||||
--accent: #6366f1;
|
||||
--accent-2: #8b5cf6;
|
||||
--accent-3: #a855f7;
|
||||
--success: #22c55e;
|
||||
--warning: #f59e0b;
|
||||
--error: #ef4444;
|
||||
--bg: #0b0e14;
|
||||
--bg-alt: #111520;
|
||||
--surface: #161b22;
|
||||
--surface-2: #1c2230;
|
||||
--border: rgba(255, 255, 255, 0.08);
|
||||
--border-strong: rgba(255, 255, 255, 0.14);
|
||||
--grid-line: rgba(255, 255, 255, 0.06);
|
||||
--grid-size: 32px;
|
||||
--text: #e6e6ef;
|
||||
--text-muted: #8b8b9e;
|
||||
--text-dim: #5a5a6e;
|
||||
--grad-brand: linear-gradient(135deg, var(--primary), var(--accent-3));
|
||||
--grad-soft: linear-gradient(135deg, rgba(229, 77, 94, 0.12), rgba(168, 85, 247, 0.12));
|
||||
--font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
|
||||
--font-mono: ui-monospace, "JetBrains Mono", "Fira Code", "SF Mono", monospace;
|
||||
--radius: 14px;
|
||||
--radius-sm: 9px;
|
||||
--ease: cubic-bezier(0.22, 1, 0.36, 1);
|
||||
--status-ready: transparent;
|
||||
--status-success: rgba(34, 197, 94, 0.12);
|
||||
--status-skipped: rgba(245, 158, 11, 0.12);
|
||||
--status-error: rgba(239, 68, 68, 0.12);
|
||||
--label-bg: rgba(11, 14, 20, 0.5);
|
||||
}
|
||||
|
||||
html[data-theme="light"] {
|
||||
--bg: #f9f9fb;
|
||||
--bg-alt: #f0f0f5;
|
||||
--surface: #ffffff;
|
||||
--surface-2: #f5f5fa;
|
||||
--border: rgba(0, 0, 0, 0.08);
|
||||
--border-strong: rgba(0, 0, 0, 0.14);
|
||||
--grid-line: rgba(0, 0, 0, 0.07);
|
||||
--text: #1a1a2e;
|
||||
--text-muted: #71717a;
|
||||
--text-dim: #9a9aa5;
|
||||
--grad-soft: linear-gradient(135deg, rgba(229, 77, 94, 0.08), rgba(168, 85, 247, 0.08));
|
||||
--status-success: rgba(34, 197, 94, 0.1);
|
||||
--status-skipped: rgba(245, 158, 11, 0.12);
|
||||
--status-error: rgba(239, 68, 68, 0.1);
|
||||
--label-bg: rgba(249, 249, 251, 0.5);
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font-sans);
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
background-image:
|
||||
linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
|
||||
linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
|
||||
background-size: var(--grid-size) var(--grid-size);
|
||||
}
|
||||
|
||||
.page {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(100%, 36rem);
|
||||
margin: auto;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.heading-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
min-width: 52px;
|
||||
height: 28px;
|
||||
margin-top: 2px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 0.7rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.theme-toggle:hover {
|
||||
background: var(--bg-alt);
|
||||
border-color: var(--border-strong);
|
||||
}
|
||||
|
||||
.theme-toggle:focus-visible {
|
||||
outline: 2px solid var(--accent-3);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 8px;
|
||||
color: var(--primary);
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-size: 1.875rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
margin: 8px 0 22px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.fields { display: grid; gap: 18px; }
|
||||
|
||||
.field {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.field-label {
|
||||
z-index: 1;
|
||||
margin-left: 4px;
|
||||
padding: 0 4px;
|
||||
background: var(--label-bg);
|
||||
color: var(--primary);
|
||||
font-size: 0.75rem;
|
||||
line-height: 1.2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
select, input {
|
||||
width: 100%;
|
||||
align-self: stretch;
|
||||
min-height: 54px;
|
||||
padding: 16px 12px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
outline: none;
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
|
||||
}
|
||||
|
||||
.combobox-input {
|
||||
padding-right: 36px;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.combobox { position: relative; }
|
||||
|
||||
.combobox > select {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0 0 0 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.combobox-caret {
|
||||
position: absolute;
|
||||
right: 12px;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 54px;
|
||||
color: var(--text-muted);
|
||||
pointer-events: none;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
|
||||
.combobox-panel {
|
||||
position: absolute;
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 5;
|
||||
max-height: 220px;
|
||||
overflow-y: auto;
|
||||
padding: 4px 0;
|
||||
background: var(--surface-2);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-sm);
|
||||
box-shadow: 0 12px 32px rgb(0 0 0 / 35%);
|
||||
}
|
||||
|
||||
.combobox-panel[hidden] { display: none; }
|
||||
|
||||
.combobox-option {
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
color: var(--text);
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.combobox-option[aria-selected="true"],
|
||||
.combobox-option:hover {
|
||||
background: var(--grad-soft);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.combobox-option[hidden] { display: none; }
|
||||
|
||||
.combobox-empty {
|
||||
padding: 8px 12px;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
select:focus, input:focus,
|
||||
.combobox-input:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgb(99 102 241 / 28%);
|
||||
}
|
||||
|
||||
select:disabled, input:disabled,
|
||||
.combobox-input:disabled {
|
||||
cursor: not-allowed;
|
||||
background: var(--bg-alt);
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.divider {
|
||||
height: 1px;
|
||||
margin: 22px 0;
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
#create-button {
|
||||
width: 100%;
|
||||
min-height: 44px;
|
||||
border: 0;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--grad-brand);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
box-shadow: 0 8px 22px -10px var(--primary);
|
||||
transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), filter 150ms var(--ease);
|
||||
}
|
||||
|
||||
#create-button:hover:not(:disabled) {
|
||||
filter: brightness(1.06);
|
||||
box-shadow: 0 10px 26px -8px var(--primary);
|
||||
}
|
||||
|
||||
#create-button:focus-visible {
|
||||
outline: 2px solid var(--accent-3);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
#create-button:disabled { cursor: not-allowed; opacity: 0.65; }
|
||||
|
||||
.status {
|
||||
min-height: 48px;
|
||||
margin-top: 16px;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-muted);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.45;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.status::before {
|
||||
content: "$ ";
|
||||
color: var(--primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.status-ready { background: var(--status-ready); }
|
||||
.status-success { background: var(--status-success); color: var(--success); }
|
||||
.status-skipped { background: var(--status-skipped); color: var(--warning); }
|
||||
.status-error { background: var(--status-error); color: var(--error); }
|
||||
|
||||
.version {
|
||||
margin-top: 16px;
|
||||
color: var(--text-dim);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.75rem;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.page { padding: 14px; }
|
||||
h1 { font-size: 1.5rem; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main class="page">
|
||||
<section class="panel" aria-labelledby="heading">
|
||||
<div class="heading-row">
|
||||
<div>
|
||||
<p class="eyebrow">QC datasheet</p>
|
||||
<h1 id="heading">New QC Sheet</h1>
|
||||
</div>
|
||||
<button
|
||||
id="theme-toggle"
|
||||
class="theme-toggle"
|
||||
type="button"
|
||||
aria-label="Switch to light theme"
|
||||
title="Switch theme">
|
||||
Aa
|
||||
</button>
|
||||
</div>
|
||||
<p class="subtitle">Create a new QC datasheet from the latest matching workbook.</p>
|
||||
|
||||
<div class="fields">
|
||||
<label class="field combobox" for="set-dropdown-input">
|
||||
<span id="set-label" class="field-label">Select Set</span>
|
||||
<input
|
||||
id="set-dropdown-input"
|
||||
class="combobox-input"
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
role="combobox"
|
||||
aria-expanded="false"
|
||||
aria-controls="set-dropdown-panel"
|
||||
aria-autocomplete="list"
|
||||
aria-labelledby="set-label"
|
||||
placeholder=" ">
|
||||
<select id="set-dropdown" aria-labelledby="set-label" tabindex="-1"></select>
|
||||
<span class="combobox-caret" aria-hidden="true">▾</span>
|
||||
<div id="set-dropdown-panel" class="combobox-panel" role="listbox" aria-labelledby="set-label" hidden></div>
|
||||
</label>
|
||||
<label class="field combobox" for="ink-dropdown-input">
|
||||
<span id="ink-label" class="field-label">Select Ink Color</span>
|
||||
<input
|
||||
id="ink-dropdown-input"
|
||||
class="combobox-input"
|
||||
type="text"
|
||||
autocomplete="off"
|
||||
spellcheck="false"
|
||||
role="combobox"
|
||||
aria-expanded="false"
|
||||
aria-controls="ink-dropdown-panel"
|
||||
aria-autocomplete="list"
|
||||
aria-labelledby="ink-label"
|
||||
placeholder=" ">
|
||||
<select id="ink-dropdown" aria-labelledby="ink-label" tabindex="-1"></select>
|
||||
<span class="combobox-caret" aria-hidden="true">▾</span>
|
||||
<div id="ink-dropdown-panel" class="combobox-panel" role="listbox" aria-labelledby="ink-label" hidden></div>
|
||||
</label>
|
||||
<label class="field" for="serial-input">
|
||||
<span id="serial-label" class="field-label">Serial:</span>
|
||||
<input id="serial-input" type="text" placeholder="e.g. 1234/A" aria-labelledby="serial-label">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="divider"></div>
|
||||
<button id="create-button" type="button">Create datasheet</button>
|
||||
<div id="status" class="status status-ready" role="status">Loading configuration...</div>
|
||||
<p id="version" class="version"></p>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
const setDropdown = document.getElementById("set-dropdown");
|
||||
const inkDropdown = document.getElementById("ink-dropdown");
|
||||
const setInput = document.getElementById("set-dropdown-input");
|
||||
const inkInput = document.getElementById("ink-dropdown-input");
|
||||
const setPanel = document.getElementById("set-dropdown-panel");
|
||||
const inkPanel = document.getElementById("ink-dropdown-panel");
|
||||
const serialInput = document.getElementById("serial-input");
|
||||
const createBtn = document.getElementById("create-button");
|
||||
const status = document.getElementById("status");
|
||||
const themeToggle = document.getElementById("theme-toggle");
|
||||
|
||||
function isLightTheme() {
|
||||
return document.documentElement.getAttribute("data-theme") === "light";
|
||||
}
|
||||
|
||||
function syncThemeToggle() {
|
||||
const light = isLightTheme();
|
||||
themeToggle.setAttribute(
|
||||
"aria-label",
|
||||
light ? "Switch to dark theme" : "Switch to light theme"
|
||||
);
|
||||
themeToggle.textContent = light ? "Dark" : "Light";
|
||||
}
|
||||
|
||||
function applyTheme(theme) {
|
||||
if (theme === "light") {
|
||||
document.documentElement.setAttribute("data-theme", "light");
|
||||
} else {
|
||||
document.documentElement.removeAttribute("data-theme");
|
||||
}
|
||||
try {
|
||||
localStorage.setItem("xlsx-clean-theme", theme);
|
||||
} catch (error) {
|
||||
/* ignore quota / privacy mode */
|
||||
}
|
||||
syncThemeToggle();
|
||||
}
|
||||
|
||||
themeToggle.addEventListener("click", () => {
|
||||
applyTheme(isLightTheme() ? "dark" : "light");
|
||||
});
|
||||
syncThemeToggle();
|
||||
|
||||
// Builds a searchable combobox. The underlying <select> stays as the
|
||||
// semantic source of truth; the visible widget is a text <input> plus a
|
||||
// listbox panel that filters options as the user types.
|
||||
function createCombobox(selectEl, inputEl, panelEl) {
|
||||
let openState = false;
|
||||
let inputDirty = false;
|
||||
|
||||
const visibleOptions = () =>
|
||||
Array.from(panelEl.querySelectorAll(".combobox-option")).filter(
|
||||
(node) => !node.hidden
|
||||
);
|
||||
|
||||
const open = () => {
|
||||
if (openState || inputEl.disabled) return;
|
||||
openState = true;
|
||||
panelEl.hidden = false;
|
||||
inputEl.setAttribute("aria-expanded", "true");
|
||||
filter();
|
||||
};
|
||||
|
||||
const close = () => {
|
||||
if (!openState) return;
|
||||
openState = false;
|
||||
panelEl.hidden = true;
|
||||
inputEl.setAttribute("aria-expanded", "false");
|
||||
inputEl.removeAttribute("aria-activedescendant");
|
||||
for (const node of panelEl.querySelectorAll(".combobox-option")) {
|
||||
node.setAttribute("aria-selected", "false");
|
||||
}
|
||||
};
|
||||
|
||||
const setActive = (idx) => {
|
||||
const options = visibleOptions();
|
||||
for (const node of panelEl.querySelectorAll(".combobox-option")) {
|
||||
node.setAttribute("aria-selected", "false");
|
||||
}
|
||||
if (idx < 0 || idx >= options.length) {
|
||||
inputEl.removeAttribute("aria-activedescendant");
|
||||
return;
|
||||
}
|
||||
const node = options[idx];
|
||||
node.setAttribute("aria-selected", "true");
|
||||
node.scrollIntoView({ block: "nearest" });
|
||||
inputEl.setAttribute("aria-activedescendant", node.id);
|
||||
};
|
||||
|
||||
const filter = () => {
|
||||
const needle = inputDirty ? inputEl.value.trim().toLowerCase() : "";
|
||||
let firstVisible = -1;
|
||||
let count = 0;
|
||||
for (const node of panelEl.querySelectorAll(".combobox-option")) {
|
||||
const value = (node.dataset.value || "").toLowerCase();
|
||||
const match = !needle || value.includes(needle);
|
||||
node.hidden = !match;
|
||||
if (match) {
|
||||
if (firstVisible === -1) firstVisible = count;
|
||||
count += 1;
|
||||
}
|
||||
}
|
||||
const empty = panelEl.querySelector(".combobox-empty");
|
||||
if (empty) empty.hidden = count > 0;
|
||||
setActive(firstVisible === -1 ? -1 : 0);
|
||||
};
|
||||
|
||||
const selectValue = (value) => {
|
||||
if (selectEl.value !== value) {
|
||||
selectEl.value = value;
|
||||
selectEl.dispatchEvent(new Event("change", { bubbles: true }));
|
||||
}
|
||||
inputEl.value = value;
|
||||
inputDirty = false;
|
||||
close();
|
||||
inputEl.focus();
|
||||
};
|
||||
|
||||
const syncDisabled = () => {
|
||||
inputEl.disabled = selectEl.disabled;
|
||||
if (selectEl.disabled) close();
|
||||
};
|
||||
|
||||
const rebuild = () => {
|
||||
panelEl.replaceChildren();
|
||||
const values = Array.from(selectEl.options).map((o) => o.value);
|
||||
for (const value of values) {
|
||||
const node = document.createElement("div");
|
||||
node.className = "combobox-option";
|
||||
node.id = `${selectEl.id}-opt-${CSS.escape(value)}`;
|
||||
node.setAttribute("role", "option");
|
||||
node.setAttribute("aria-selected", "false");
|
||||
node.dataset.value = value;
|
||||
node.textContent = value;
|
||||
node.addEventListener("mousedown", (event) => {
|
||||
// mousedown (not click) so we beat the input's blur handler.
|
||||
event.preventDefault();
|
||||
selectValue(value);
|
||||
});
|
||||
panelEl.append(node);
|
||||
}
|
||||
const empty = document.createElement("div");
|
||||
empty.className = "combobox-empty";
|
||||
empty.textContent = "No matches";
|
||||
empty.hidden = true;
|
||||
panelEl.append(empty);
|
||||
inputEl.value = selectEl.value || "";
|
||||
inputDirty = false;
|
||||
syncDisabled();
|
||||
};
|
||||
|
||||
inputEl.addEventListener("focus", open);
|
||||
inputEl.addEventListener("mousedown", () => {
|
||||
open();
|
||||
});
|
||||
inputEl.addEventListener("input", () => {
|
||||
inputDirty = true;
|
||||
if (!openState) open();
|
||||
filter();
|
||||
});
|
||||
inputEl.addEventListener("blur", () => {
|
||||
// Defer close so a mousedown on a panel option can fire first.
|
||||
setTimeout(() => {
|
||||
if (inputEl.value !== selectEl.value) {
|
||||
inputEl.value = selectEl.value || "";
|
||||
inputDirty = false;
|
||||
}
|
||||
close();
|
||||
}, 0);
|
||||
});
|
||||
inputEl.addEventListener("keydown", (event) => {
|
||||
const options = visibleOptions();
|
||||
if (event.key === "ArrowDown") {
|
||||
event.preventDefault();
|
||||
if (!openState) open();
|
||||
const idx = options.findIndex(
|
||||
(n) => n.getAttribute("aria-selected") === "true"
|
||||
);
|
||||
setActive(Math.min(idx + 1, options.length - 1));
|
||||
} else if (event.key === "ArrowUp") {
|
||||
event.preventDefault();
|
||||
if (!openState) open();
|
||||
const idx = options.findIndex(
|
||||
(n) => n.getAttribute("aria-selected") === "true"
|
||||
);
|
||||
setActive(Math.max(idx - 1, 0));
|
||||
} else if (event.key === "Home") {
|
||||
if (openState) {
|
||||
event.preventDefault();
|
||||
setActive(0);
|
||||
}
|
||||
} else if (event.key === "End") {
|
||||
if (openState) {
|
||||
event.preventDefault();
|
||||
setActive(options.length - 1);
|
||||
}
|
||||
} else if (event.key === "Enter") {
|
||||
if (openState) {
|
||||
event.preventDefault();
|
||||
const node = panelEl.querySelector(
|
||||
'.combobox-option[aria-selected="true"]'
|
||||
);
|
||||
if (node) selectValue(node.dataset.value);
|
||||
}
|
||||
} else if (event.key === "Escape") {
|
||||
if (openState) {
|
||||
event.preventDefault();
|
||||
close();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Click outside closes the panel.
|
||||
document.addEventListener("mousedown", (event) => {
|
||||
if (!openState) return;
|
||||
if (!inputEl.parentElement.contains(event.target)) close();
|
||||
});
|
||||
|
||||
return { rebuild, syncDisabled };
|
||||
}
|
||||
|
||||
const setCombobox = createCombobox(setDropdown, setInput, setPanel);
|
||||
const inkCombobox = createCombobox(inkDropdown, inkInput, inkPanel);
|
||||
|
||||
function populateDropdown(dropdown, combobox, values) {
|
||||
dropdown.replaceChildren();
|
||||
for (const value of values) {
|
||||
const option = document.createElement("option");
|
||||
option.value = value;
|
||||
option.textContent = value;
|
||||
dropdown.append(option);
|
||||
}
|
||||
dropdown.disabled = values.length === 0;
|
||||
combobox.rebuild();
|
||||
}
|
||||
|
||||
function populateDropdowns(sets, inks) {
|
||||
populateDropdown(setDropdown, setCombobox, sets);
|
||||
populateDropdown(inkDropdown, inkCombobox, inks);
|
||||
}
|
||||
|
||||
function populateInkDropdown(inks) {
|
||||
populateDropdown(inkDropdown, inkCombobox, inks);
|
||||
}
|
||||
|
||||
function setLabels(labels) {
|
||||
document.getElementById("set-label").textContent = labels.set;
|
||||
document.getElementById("ink-label").textContent = labels.ink;
|
||||
document.getElementById("serial-label").textContent = labels.serial;
|
||||
}
|
||||
|
||||
function setVersion(version) {
|
||||
document.getElementById("version").textContent = `v${version}`;
|
||||
}
|
||||
|
||||
function showStatus(result) {
|
||||
const details = [result.message];
|
||||
if (result.template) details.push(`Template: ${result.template}`);
|
||||
if (result.destination) details.push(`Output: ${result.destination}`);
|
||||
if (result.backend) details.push(`Backend: ${result.backend}`);
|
||||
status.textContent = details.join("\n");
|
||||
status.className = "status";
|
||||
if (result.skipped) {
|
||||
status.classList.add("status-skipped");
|
||||
} else if (result.ok) {
|
||||
status.classList.add("status-success");
|
||||
} else {
|
||||
status.classList.add("status-error");
|
||||
}
|
||||
}
|
||||
|
||||
async function initialize() {
|
||||
try {
|
||||
const data = await window.pywebview.api.get_initial_data();
|
||||
populateDropdowns(data.sets, data.inks);
|
||||
setLabels(data.labels);
|
||||
setVersion(data.version);
|
||||
showStatus({ message: "Ready.", ok: true, skipped: false });
|
||||
} catch (error) {
|
||||
showStatus({ message: `Failed to load configuration: ${error}`, ok: false, skipped: false });
|
||||
createBtn.disabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
setDropdown.addEventListener("change", async () => {
|
||||
try {
|
||||
const inks = await window.pywebview.api.get_inks(setDropdown.value);
|
||||
populateInkDropdown(inks);
|
||||
} catch (error) {
|
||||
showStatus({ message: `Failed to load ink colors: ${error}`, ok: false, skipped: false });
|
||||
}
|
||||
});
|
||||
|
||||
createBtn.addEventListener("click", async () => {
|
||||
createBtn.disabled = true;
|
||||
try {
|
||||
const result = await window.pywebview.api.create(
|
||||
setDropdown.value, inkDropdown.value, serialInput.value
|
||||
);
|
||||
showStatus(result);
|
||||
} catch (error) {
|
||||
showStatus({ message: `Failed to create datasheet: ${error}`, ok: false, skipped: false });
|
||||
} finally {
|
||||
createBtn.disabled = false;
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener("pywebviewready", initialize);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
127
tests/test_gui_app.py
Normal file
127
tests/test_gui_app.py
Normal file
@@ -0,0 +1,127 @@
|
||||
from pathlib import Path
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import patch
|
||||
|
||||
from xlsx_clean.gui_app import Api
|
||||
|
||||
|
||||
def test_initial_data_stores_state_and_uses_first_set_inks():
|
||||
rows = [{"set_name": "Set A"}]
|
||||
config = {"backend": "ooxml"}
|
||||
with patch(
|
||||
"xlsx_clean.gui_app.load_config",
|
||||
return_value=(["Set", "Ink", "Serial", "addin-a", "addin-b"], rows, config),
|
||||
), patch("xlsx_clean.gui_app.list_sets", return_value=["Set A"]), patch(
|
||||
"xlsx_clean.gui_app.list_ink_colors", return_value=["Blue"]
|
||||
) as inks:
|
||||
api = Api()
|
||||
data = api.get_initial_data()
|
||||
|
||||
assert data["sets"] == ["Set A"]
|
||||
assert data["inks"] == ["Blue"]
|
||||
assert data["labels"] == {"set": "Set", "ink": "Ink", "serial": "Serial"}
|
||||
assert api.rows == rows
|
||||
assert api.addin_paths == ["addin-a", "addin-b"]
|
||||
assert api.config == config
|
||||
inks.assert_called_once_with(rows, "Set A")
|
||||
|
||||
|
||||
def test_initial_data_uses_safe_label_fallbacks_and_empty_inks():
|
||||
with (
|
||||
patch("xlsx_clean.gui_app.load_config", return_value=([], [], {})),
|
||||
patch("xlsx_clean.gui_app.list_sets", return_value=[]),
|
||||
patch("xlsx_clean.gui_app.list_ink_colors") as inks,
|
||||
):
|
||||
data = Api().get_initial_data()
|
||||
|
||||
assert data["labels"] == {
|
||||
"set": "Select Set",
|
||||
"ink": "Select Ink Color",
|
||||
"serial": "Serial:",
|
||||
}
|
||||
assert data["inks"] == []
|
||||
inks.assert_not_called()
|
||||
|
||||
|
||||
def test_get_inks_uses_initialized_rows():
|
||||
api = Api()
|
||||
api.rows = [{"set_name": "Set A"}]
|
||||
with patch("xlsx_clean.gui_app.list_ink_colors", return_value=["Blue"]) as inks:
|
||||
assert api.get_inks("Set A") == ["Blue"]
|
||||
|
||||
inks.assert_called_once_with(api.rows, "Set A")
|
||||
|
||||
|
||||
def test_create_passes_core_arguments_and_serializes_paths():
|
||||
api = Api()
|
||||
api.rows = [{"set_name": "Set A"}]
|
||||
api.addin_paths = ["addin-a"]
|
||||
api.config = {"backend": "ooxml"}
|
||||
result = SimpleNamespace(
|
||||
ok=True,
|
||||
skipped=False,
|
||||
message="Wrote workbook",
|
||||
template=Path("template.xlsx"),
|
||||
destination=Path("output.xlsx"),
|
||||
backend="ooxml",
|
||||
)
|
||||
with patch("xlsx_clean.gui_app.create_datasheet", return_value=result) as create:
|
||||
response = api.create("Set A", "Blue", "1234/A")
|
||||
|
||||
create.assert_called_once_with(
|
||||
selected_set="Set A",
|
||||
selected_dir="Blue",
|
||||
batch_serial="1234/A",
|
||||
backend=None,
|
||||
rows=api.rows,
|
||||
addin_paths=api.addin_paths,
|
||||
config=api.config,
|
||||
)
|
||||
assert response == {
|
||||
"ok": True,
|
||||
"skipped": False,
|
||||
"message": "Wrote workbook",
|
||||
"template": "template.xlsx",
|
||||
"destination": "output.xlsx",
|
||||
"backend": "ooxml",
|
||||
}
|
||||
|
||||
|
||||
def test_create_serializes_missing_paths_for_error_or_skipped_result():
|
||||
api = Api()
|
||||
result = SimpleNamespace(
|
||||
ok=False,
|
||||
skipped=False,
|
||||
message="Select a set.",
|
||||
template=None,
|
||||
destination=None,
|
||||
backend=None,
|
||||
)
|
||||
with patch("xlsx_clean.gui_app.create_datasheet", return_value=result):
|
||||
response = api.create("", "", "")
|
||||
|
||||
assert response["template"] is None
|
||||
assert response["destination"] is None
|
||||
assert response["ok"] is False
|
||||
|
||||
|
||||
def test_create_serializes_unexpected_exceptions_into_result_contract():
|
||||
api = Api()
|
||||
api.rows = [{"set_name": "Set A"}]
|
||||
api.addin_paths = []
|
||||
api.config = {"backend": "ooxml"}
|
||||
|
||||
def boom(**kwargs):
|
||||
raise RuntimeError("backend exploded")
|
||||
|
||||
with patch("xlsx_clean.gui_app.create_datasheet", side_effect=boom):
|
||||
response = api.create("Set A", "Blue", "1234/A")
|
||||
|
||||
assert response == {
|
||||
"ok": False,
|
||||
"skipped": False,
|
||||
"message": "Unexpected error: backend exploded",
|
||||
"template": None,
|
||||
"destination": None,
|
||||
"backend": None,
|
||||
}
|
||||
44
tests/test_gui_entrypoint.py
Normal file
44
tests/test_gui_entrypoint.py
Normal file
@@ -0,0 +1,44 @@
|
||||
from pathlib import Path
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
from xlsx_clean import gui_app
|
||||
|
||||
|
||||
def test_parse_args_uses_default_dimensions():
|
||||
args = gui_app.parse_args([])
|
||||
assert (args.width, args.height) == (800, 600)
|
||||
|
||||
|
||||
def test_main_initializes_api_before_opening_window():
|
||||
index_html = Path("/tmp/index.html")
|
||||
events = []
|
||||
api = MagicMock()
|
||||
|
||||
def create_window(**kwargs):
|
||||
events.append(("create_window", kwargs))
|
||||
|
||||
with (
|
||||
patch("xlsx_clean.gui_app.Api", return_value=api),
|
||||
patch("xlsx_clean.gui_app.package_file", return_value=index_html) as package_file,
|
||||
patch("xlsx_clean.gui_app.webview.create_window", side_effect=create_window),
|
||||
patch("xlsx_clean.gui_app.webview.start", side_effect=lambda: events.append(("start",))),
|
||||
):
|
||||
gui_app.main(["--width", "900", "--height", "700"])
|
||||
|
||||
package_file.assert_called_once_with("ui/index.html")
|
||||
api.initialize.assert_called_once_with()
|
||||
assert events == [
|
||||
(
|
||||
"create_window",
|
||||
{
|
||||
"title": f"New QC Sheet · v{gui_app._VERSION}",
|
||||
"url": index_html.as_uri(),
|
||||
"js_api": api,
|
||||
"width": 900,
|
||||
"height": 700,
|
||||
"min_size": (450, 400),
|
||||
"background_color": "#0b0e14",
|
||||
},
|
||||
),
|
||||
("start",),
|
||||
]
|
||||
14
tests/test_packaging.py
Normal file
14
tests/test_packaging.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_pyinstaller_spec_collects_webview_and_local_assets():
|
||||
spec = Path("packaging/xlsx_clean.spec").read_text(encoding="utf-8")
|
||||
|
||||
assert 'collect_all("webview")' in spec
|
||||
assert 'collect_all("dearpygui")' not in spec
|
||||
assert '"ui"), "xlsx_clean/ui")' in spec
|
||||
assert '"fonts"), "xlsx_clean/fonts")' in spec
|
||||
assert 'if sys.platform == "win32":' in spec
|
||||
assert 'collect_all("clr_loader")' in spec
|
||||
for hidden_import in ('"clr"', '"clr_loader"', '"pythonnet"'):
|
||||
assert hidden_import in spec
|
||||
19
tests/test_setup_linux.py
Normal file
19
tests/test_setup_linux.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_setup_linux_pins_system_python_for_uv_sync():
|
||||
script = Path("desktop/setup_linux.sh").read_text(encoding="utf-8")
|
||||
|
||||
assert "uv venv --python /usr/bin/python3 --no-managed-python --system-site-packages" in script
|
||||
|
||||
sync_lines = [
|
||||
line.strip()
|
||||
for line in script.splitlines()
|
||||
if line.strip().startswith("uv sync")
|
||||
]
|
||||
assert sync_lines == [
|
||||
"uv sync --python /usr/bin/python3 --no-managed-python"
|
||||
]
|
||||
assert "--python-preference" not in script
|
||||
assert "uv sync --active" not in script
|
||||
assert "include-system-site-packages = true" in script
|
||||
63
tests/test_ui_assets.py
Normal file
63
tests/test_ui_assets.py
Normal file
@@ -0,0 +1,63 @@
|
||||
import re
|
||||
from html.parser import HTMLParser
|
||||
from pathlib import Path
|
||||
|
||||
from xlsx_clean.paths import package_file
|
||||
|
||||
|
||||
class StrictHtmlParser(HTMLParser):
|
||||
def error(self, message):
|
||||
raise AssertionError(message)
|
||||
|
||||
|
||||
def test_ui_asset_exists_and_has_required_bridge_content():
|
||||
html_path = package_file("ui/index.html")
|
||||
assert html_path.is_file()
|
||||
content = html_path.read_text(encoding="utf-8")
|
||||
|
||||
for expected in (
|
||||
"New QC Sheet",
|
||||
"Create a new QC datasheet from the latest matching workbook.",
|
||||
'id="set-label"',
|
||||
'id="ink-label"',
|
||||
'id="serial-label"',
|
||||
"Create datasheet",
|
||||
"status-ready",
|
||||
"status-success",
|
||||
"status-skipped",
|
||||
"status-error",
|
||||
'id="version"',
|
||||
"pywebviewready",
|
||||
"get_initial_data()",
|
||||
"get_inks(setDropdown.value)",
|
||||
"api.create(",
|
||||
"finally",
|
||||
'inputEl.value = selectEl.value || ""',
|
||||
'inputEl.addEventListener("mousedown", () => {\n open();\n });',
|
||||
):
|
||||
assert expected in content
|
||||
|
||||
assert "tailwind" not in content.lower()
|
||||
assert "quasar" not in content.lower()
|
||||
assert "cdn" not in content.lower()
|
||||
assert not re.search(r"https?://", content)
|
||||
assert "#0b0e14" in content
|
||||
assert "#e54d5e" in content
|
||||
assert "background-size: var(--grid-size) var(--grid-size)" in content
|
||||
assert "background: transparent" in content
|
||||
assert "tl-red" not in content
|
||||
assert 'class="chrome"' not in content
|
||||
StrictHtmlParser().feed(content)
|
||||
|
||||
|
||||
def test_ui_font_sources_are_bundled_locally():
|
||||
content = package_file("ui/index.html").read_text(encoding="utf-8")
|
||||
font_urls = re.findall(r'url\("([^\"]+\.ttf)"\)', content)
|
||||
|
||||
assert font_urls == ["../fonts/Inter-Regular.ttf", "../fonts/Inter-Bold.ttf"]
|
||||
for font_url in font_urls:
|
||||
assert (package_file("ui") / font_url).resolve().is_file()
|
||||
|
||||
|
||||
def test_demo_html_is_not_shipped():
|
||||
assert not Path("desktop/demo.html").exists()
|
||||
298
uv.lock
generated
298
uv.lock
generated
@@ -35,22 +35,68 @@ wheels = [
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dearpygui"
|
||||
version = "2.3.1"
|
||||
name = "bottle"
|
||||
version = "0.13.4"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/7a/71/cca6167c06d00c81375fd668719df245864076d284f7cb46a694cbeb5454/bottle-0.13.4.tar.gz", hash = "sha256:787e78327e12b227938de02248333d788cfe45987edca735f8f88e03472c3f47", size = 98717, upload-time = "2025-06-15T10:08:59.439Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/20/f1/6f30c7eafa25755105d0c26049a95c89cc5c82b68971e1cc8ffea36b748a/dearpygui-2.3.1-cp312-cp312-macosx_13_0_arm64.whl", hash = "sha256:6b1efd675a358176b3b76c039587a543d407d8fbb2cc3643a527e0ab7c0f5577", size = 2002717, upload-time = "2026-05-01T22:46:00.242Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/03/fa76c31087b6ebbc13948de6d9d3bc9ed9946824b13d9d1089356b54249c/dearpygui-2.3.1-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:364b5b6a0953999fec764d529d9bb0b2cc6ab6ed06188e0ded28237c1475ca98", size = 2678552, upload-time = "2026-05-01T22:46:07.502Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/ef/657ec68a79664cd28d98d590eed85103c6ffc1e23e7d3c4e5aedb7ee887d/dearpygui-2.3.1-cp312-cp312-manylinux2014_aarch64.whl", hash = "sha256:199dffebda245c9f59aa7c10c3b7f62963237c5f744150ad9be409b27a2661d3", size = 2501224, upload-time = "2026-05-01T22:46:18.8Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/be/e67e5a04439f15e60cf596092a31b2a907272288954e47f5ced43c0b1678/dearpygui-2.3.1-cp312-cp312-win_amd64.whl", hash = "sha256:26ed9197cdb30099c665bd1b23724e0dba60ad06b71344ecca7e52748c21874b", size = 1882080, upload-time = "2026-05-01T22:45:49.366Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/db/56a293ad392b8dafdd3eb1a0c4d367efbde99aa6930359685fe270984dd1/dearpygui-2.3.1-cp313-cp313-macosx_13_0_arm64.whl", hash = "sha256:d2d29e72b031886893b32269e1478eff1fd651512e6c2bceda91059c3bc8ee0e", size = 2002694, upload-time = "2026-05-01T22:46:01.425Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/e0/df598671f40a7fffb8390946115d9e9cf12d3f4a52f5b9381bddc5699aee/dearpygui-2.3.1-cp313-cp313-manylinux1_x86_64.whl", hash = "sha256:e3f64c8d4cae68a3b5be1b7531d08400ccbf1e4ff03c7acfc85954f98993f864", size = 2678564, upload-time = "2026-05-01T22:46:08.706Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d0/d1/87cfb577d4a1615e809e2f6e0fd720bd4ad6cd25e365ef2fd08a6e09c86e/dearpygui-2.3.1-cp313-cp313-manylinux2014_aarch64.whl", hash = "sha256:0d8b7a5a04cd4a6e25dbf162aa0405cf12143a1c82b33e371c20e5ba8d9349f3", size = 2503196, upload-time = "2026-05-01T22:46:20.276Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b3/38/05f74181a59353bdc927b6ec46333714f633c5755f3d4bcda34d6eb100a5/dearpygui-2.3.1-cp313-cp313-win_amd64.whl", hash = "sha256:7946722c50f1e08866dfdb78eb33dd4e67dea1a3cfe4400b159e1c96861116dc", size = 1882082, upload-time = "2026-05-01T22:45:50.915Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/4a/08/68ce3ba941cf09bcf288f2603d7178c936d473172fd545e0665b885cb840/dearpygui-2.3.1-cp314-cp314-macosx_13_0_arm64.whl", hash = "sha256:e2cbabd8d383308ea3520360e100d1e95c9a957cd26247431cd4920b23c3b56e", size = 2003034, upload-time = "2026-05-01T22:46:02.736Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f3/3f/ac003b6d636c9f5aae910a62d00b6c119403212cf2d7772d7c59ca8ef6dd/dearpygui-2.3.1-cp314-cp314-manylinux1_x86_64.whl", hash = "sha256:953442c7272e57f3686e393edc5cf6ce73cc2f47142739735dfabed403e33770", size = 2678545, upload-time = "2026-05-01T22:46:10.181Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1a/6b/657a2f1e2f604f356c39ed5b870aaed5d07fdeac3139fae2a455473b64ca/dearpygui-2.3.1-cp314-cp314-manylinux2014_aarch64.whl", hash = "sha256:43a561b5dc589944a3a2b469e5e68f1ab35ae38b3dcdf1f813ed9d6e024153f8", size = 2501699, upload-time = "2026-05-01T22:46:21.497Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/8c/56/93b2310891589063e0226cb07fe05e08fbdb3f409f80f9edefb1cebea84e/dearpygui-2.3.1-cp314-cp314-win_amd64.whl", hash = "sha256:272cc52c66bc5a4a332f13a3af5e603070d47ca7cc4976e6a8c247594e2b3dd0", size = 1943067, upload-time = "2026-05-01T22:45:52.255Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/83/f6/b55ec74cfe68c6584163faa311503c20b0da4c09883a41e8e00d6726c954/bottle-0.13.4-py2.py3-none-any.whl", hash = "sha256:045684fbd2764eac9cdeb824861d1551d113e8b683d8d26e296898d3dd99a12e", size = 103807, upload-time = "2025-06-15T10:08:57.691Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cffi"
|
||||
version = "2.1.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pycparser", marker = "implementation_name != 'PyPy'" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/9e/ef/008a1939e372c06329a3fce4279c02f328488f3526744906eeec3da7ad5f/cffi-2.1.1.tar.gz", hash = "sha256:dd31f52ea1086513bb9df30f8fcee9b8918323ae067a3d5b78bc826a000712be", size = 530807, upload-time = "2026-08-03T21:21:18.939Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/80/fb/0bb75b7039588c074b37ae99f40d9bfddf990ecb2fbc346ebccd2e56b9be/cffi-2.1.1-cp312-cp312-win32.whl", hash = "sha256:046bfc24911b37851ee1b51aab8bffe713d89c68c6a057b09484ce9fd5f69b4e", size = 175292, upload-time = "2026-08-03T21:19:55.566Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d9/79/615cc094e2fb508cade7de88d3b4f6c4ec2bab695c97bce9153dc65aadf5/cffi-2.1.1-cp312-cp312-win_amd64.whl", hash = "sha256:f53e442b08449d42821fa4a4fba000095af9f62742a500f978a9f557ec44339a", size = 185919, upload-time = "2026-08-03T21:19:56.89Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/c6/d0ea84713fe46b243a436a18fcd47d639732747e21635c8a27191b06dc30/cffi-2.1.1-cp312-cp312-win_arm64.whl", hash = "sha256:7bde5e4cc5c10140859842b9d383af292b22639a4dffb725314baf45968cef80", size = 180093, upload-time = "2026-08-03T21:19:58.155Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9d/f4/035513d4117049066b4779dc3b7c0c0fdad175fa13731c9f4003f1cd1478/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:b5bdfd1c873d4e093aabc0ca84c4ca6dbc4f752afb5c86f146d9742580c9da2e", size = 194248, upload-time = "2026-08-03T21:19:59.399Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/76/af/2aeb4dbb5fc41a04161ae9ff1518de7cec08e164f44a8ce6a4cf7fd2cd1d/cffi-2.1.1-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:31348097ff5bbe827ccc41795d4dd099d9f0625e7def00ee653c137a490c2a6c", size = 196908, upload-time = "2026-08-03T21:20:00.746Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/70/ea/839b50531021a647fb5e929f72cf97bc1ff702b5472166164b5b6e76b851/cffi-2.1.1-cp313-cp313-win32.whl", hash = "sha256:334644fbac4eff73d985a17a91226df55d0f394160c4cfb880e084c8f7161cac", size = 175263, upload-time = "2026-08-03T21:20:13.559Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/60/a6/8b149b2c3f2e11aaa1618ef64500b45f50f22c57a977a4dff1aff1f91042/cffi-2.1.1-cp313-cp313-win_amd64.whl", hash = "sha256:1aa5645c30469b09530c4ebca77ebf8f17618293c58f8549cb1a543a50236e7d", size = 185688, upload-time = "2026-08-03T21:20:14.69Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/01/9a/11f687cb39d6a3504060d5242f04f48c735afb4d3d533958a20594890cb2/cffi-2.1.1-cp313-cp313-win_arm64.whl", hash = "sha256:63bbfd5ded17c4840ac07cd8f1c21ba9d9708141f840b324f422f41b207e3973", size = 180078, upload-time = "2026-08-03T21:20:15.917Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d3/7b/d6bbf82b8b96e7391438898c42f5bd96dd02030fd5b64937d248220003e2/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7dbb61fe3a7699468030f71bbe5f8a0e326a151daa91beb11a6fc1f980c55e1c", size = 194064, upload-time = "2026-08-03T21:20:17.148Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/94/e6/bcc91b283be94735e268487a054004f0aa19947b6348fa367db53230abc8/cffi-2.1.1-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:f24fb43132a4c6b4cb4eb029492919b2db645be6808d738f244fd146c03c32cb", size = 196720, upload-time = "2026-08-03T21:20:18.268Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/0b/e9/d0061c364cde06ee43168a0d076ac1da512cbc380d44767b844ba34fe2b6/cffi-2.1.1-cp314-cp314-win32.whl", hash = "sha256:1a18a57b58cfb21fc28d72e876acf10eaed67a1ed96226f92af4df681d571c4c", size = 177682, upload-time = "2026-08-03T21:20:44.288Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/06/1c3e01e3ba14c39f6d10bfbac52753b7e22259e38088e5cfe1d704918690/cffi-2.1.1-cp314-cp314-win_amd64.whl", hash = "sha256:3222ba5d678f80a030e6afbcc33dc1ae5cb45facabb61cee2c7016b8432fde48", size = 187949, upload-time = "2026-08-03T21:20:45.623Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/87/5b/da4e39efe18eeb89cf580ea9cfc66b6a7c3eadb808fc0cc1d3a295cb5a5d/cffi-2.1.1-cp314-cp314-win_arm64.whl", hash = "sha256:ab36d55f9ed2d067327667c2fea18dda018eb628dd6347aa01dda6cf1f5d3836", size = 182947, upload-time = "2026-08-03T21:20:46.955Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/eb/d2/3b7176cb570a1d3e27faf67b72f591af508036e0d8b2be2ef9af9e8c84bb/cffi-2.1.1-cp314-cp314t-win32.whl", hash = "sha256:8ef53b2de9bcb9197d31854256575d59dbac0cba72ac627bb291ef5eceb74be4", size = 182868, upload-time = "2026-08-03T21:20:40.388Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/78/31f00c1bcd97c9bbf55f1bfdf5bc809a5de8887473e90bb9960dca825e80/cffi-2.1.1-cp314-cp314t-win_amd64.whl", hash = "sha256:616f097f2fe415bc92a247f02e11f634e1f9e9a83d327e3c915c15089c87869e", size = 194104, upload-time = "2026-08-03T21:20:41.725Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7b/1b/58496f2ed0a35de575250c02a43ab3cc2c04d494a88fed31c1cabc0fd176/cffi-2.1.1-cp314-cp314t-win_arm64.whl", hash = "sha256:ad2c86c495b899d862ea0f4b42891b8713a3bd45dd4105c7fd51c2a72f39f3a5", size = 186402, upload-time = "2026-08-03T21:20:43.042Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/c1/8f/9ebe220eab48a093d1a5a5e339ab0dc7316eef3bb04d63c42f0251b61f50/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphoneos.whl", hash = "sha256:dddad92b554513a31f272570678ba307fb9f618f05e3d4a5eacafff9eae03e1d", size = 194043, upload-time = "2026-08-03T21:20:48.179Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ff/69/844bad3ece306c4782c2ecb93597035b6690d48704b803914c199da1e8b3/cffi-2.1.1-cp315-cp315-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:da0e573f9f97159390c89d9f1a9e41908b66d408cc5b58d08cf3847d844c531b", size = 196737, upload-time = "2026-08-03T21:20:49.457Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/7e/8debeb04f1ab9fe2a6963964cd6f1aaf7192627b83926586a6a4e089c9fa/cffi-2.1.1-cp315-cp315-win32.whl", hash = "sha256:4f42141fc14250de6dde5ee7ea4432be017252d91f19c5ad043c084cea629cac", size = 177683, upload-time = "2026-08-03T21:21:14.901Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e0/31/5158704cc474ab65c1647932e88be78dc0873f47130e253be38bcaf13d01/cffi-2.1.1-cp315-cp315-win_amd64.whl", hash = "sha256:e6e8cff14d6fb0be70a09c0bdc58096f501952d04624ebf867e0e56da2df8960", size = 187897, upload-time = "2026-08-03T21:21:16.108Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/cc/4b/b3a2da8570c704ffc0f9762cdc3ec0f02c8573798e0b5cf7f11c82bbb70f/cffi-2.1.1-cp315-cp315-win_arm64.whl", hash = "sha256:27350daa11d4f10c540e6e89dada4c54feb7256ad03e9a4dc075ebad7ba360d1", size = 182935, upload-time = "2026-08-03T21:21:17.271Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/cd/a361394c94b2129d604bb846f624a8e88255a3ee33129c434a00d715e64f/cffi-2.1.1-cp315-cp315t-win32.whl", hash = "sha256:06c72bb76605a4b0cd0aad6930b69d4baf7dd5d806cfc409b824191099700e66", size = 182707, upload-time = "2026-08-03T21:21:11.226Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/9b/b5/ba2b299993c26577d529b6ae29841f9e15b9fcf004d65f423f4fcf94ade9/cffi-2.1.1-cp315-cp315t-win_amd64.whl", hash = "sha256:d9c275eaacd24aa73f94ffd6de08fc3f932424d8b6c376f4bed7cde376fe7bc3", size = 193772, upload-time = "2026-08-03T21:21:12.39Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/29/35e016098c814cd93de9cd320c66b5bfba14dc6ecedd3cb518fa7c408c69/cffi-2.1.1-cp315-cp315t-win_arm64.whl", hash = "sha256:d18e5ac0f2f03f4f518d3e23db0f0cad7faa1da8620e9c09461d443bbf6e6692", size = 186360, upload-time = "2026-08-03T21:21:13.636Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "clr-loader"
|
||||
version = "0.3.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "cffi" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e4/46/7eea92b6aa2d68af78e049cbecec5f757f1aad44ecdecdc16bbad7eead51/clr_loader-0.3.1.tar.gz", hash = "sha256:2e073e9aaf49d1ae2f56ecba27987ad5fb68be4bcd9dd34a5bed8f0e4e128366", size = 86805, upload-time = "2026-04-18T17:49:44.287Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/5e/da/ec1a6e36624000b6df0dd61183c42342ee5814c073315e802cadaad04d2f/clr_loader-0.3.1-py3-none-any.whl", hash = "sha256:cbad189de20d202a7d621956b0fc38049e13c9bf7ca2923441eff725cd121aa1", size = 55730, upload-time = "2026-04-18T17:49:42.99Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "colorama"
|
||||
version = "0.4.6"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -62,12 +108,21 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e1/5e/4b5aaaabddfacfe36ba7768817bd1f71a7a810a43705e531f3ae4c690767/emoji-2.15.0-py3-none-any.whl", hash = "sha256:205296793d66a89d88af4688fa57fd6496732eb48917a87175a023c8138995eb", size = 608433, upload-time = "2025-09-21T12:13:01.197Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "iniconfig"
|
||||
version = "2.3.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/72/34/14ca021ce8e5dfedc35312d08ba8bf51fdd999c576889fc2c24cb97f4f10/iniconfig-2.3.0.tar.gz", hash = "sha256:c76315c77db068650d49c5b56314774a7804df16fee4402c1f19d6d15d8c4730", size = 20503, upload-time = "2025-10-18T21:55:43.219Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/cb/b1/3846dd7f199d53cb17f49cba7e651e9ce294d8497c8c150530ed11865bb8/iniconfig-2.3.0-py3-none-any.whl", hash = "sha256:f631c04d2c48c52b84d0d0549c99ff3859c98df65b3101406327ecc7d53fbf12", size = 7484, upload-time = "2025-10-18T21:55:41.639Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "macholib"
|
||||
version = "1.16.4"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "altgraph", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" },
|
||||
{ name = "altgraph" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/10/2f/97589876ea967487978071c9042518d28b958d87b17dceb7cdc1d881f963/macholib-1.16.4.tar.gz", hash = "sha256:f408c93ab2e995cd2c46e34fe328b130404be143469e41bc366c807448979362", size = 59427, upload-time = "2025-11-22T08:28:38.373Z" }
|
||||
wheels = [
|
||||
@@ -113,6 +168,30 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/54/16/12b82f791c7f50ddec566873d5bdd245baa1491bac11d15ffb98aecc8f8b/pefile-2024.8.26-py3-none-any.whl", hash = "sha256:76f8b485dcd3b1bb8166f1128d395fa3d87af26360c2358fb75b80019b957c6f", size = 74766, upload-time = "2024-08-26T21:01:02.632Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pluggy"
|
||||
version = "1.6.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "proxy-tools"
|
||||
version = "0.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/f2/cf/77d3e19b7fabd03895caca7857ef51e4c409e0ca6b37ee6e9f7daa50b642/proxy_tools-0.1.0.tar.gz", hash = "sha256:ccb3751f529c047e2d8a58440d86b205303cf0fe8146f784d1cbcd94f0a28010", size = 2978, upload-time = "2014-05-05T21:02:24.606Z" }
|
||||
|
||||
[[package]]
|
||||
name = "pycparser"
|
||||
version = "3.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pygments"
|
||||
version = "2.20.0"
|
||||
@@ -162,6 +241,125 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/e7/31/f2d7343d8ed5f7c4678377886f6ce533e6eaaa131b252ce950114c2a7efa/pyinstaller_hooks_contrib-2026.6-py3-none-any.whl", hash = "sha256:fd13b8ac126b35361175edacd41a0d97080b75dd5f4b594ecefefff969509dd3", size = 457159, upload-time = "2026-06-08T22:37:14.722Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyobjc-core"
|
||||
version = "12.2.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/a5/78/abc4ce5920305780aeb36b4067a86253378b36e29ba96673a3deb02eb03a/pyobjc_core-12.2.2.tar.gz", hash = "sha256:3906452339cd06a3bb07df103c2511d4cb0f7a22d8771c0b802eba15d9a642b6", size = 1067701, upload-time = "2026-08-11T19:43:39.059Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/86/b2/bbf7f049880ab40d110e66f25122342a1f6c98d6fe3c59bb98985503c660/pyobjc_core-12.2.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:122e6ad302a2abf5d4d4adb0156db751600ddf2768441696cba17b31323085e7", size = 6427637, upload-time = "2026-08-11T14:51:36.038Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1b/ed/a8bf040caf3704023d74086b7fb96cf4ed2e844e24bd94e5248ba214b700/pyobjc_core-12.2.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:950bd2d9c74634398c4e3d24ef2f213d4e23d705083697464fa67afedc53c1ad", size = 6427113, upload-time = "2026-08-11T15:04:39.424Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/e7/5a/760f8b9e116edd43c57e33844dc17619158fbdd311250d4209910192d72d/pyobjc_core-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:3772b406edb3ff78171530a17cda1c4a7817f87b87ded0d8715b3fa664df16db", size = 6666817, upload-time = "2026-08-11T19:30:17.01Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/13/37/486d38a173b0b8dce973a3e13c74cf402ed1b8621586b5963bc9efd49a48/pyobjc_core-12.2.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:2062e8ad30a310441cd022544a897553408bebeaa7820d5edba3c96fd7fd693b", size = 6421184, upload-time = "2026-08-11T19:30:21.081Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/f1/d138fd9b9a66ea8db56a8138b77d3413b85da3defe13363a19f364f85529/pyobjc_core-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:2c7ef3d2f865b4b3ebb14ec3556f7a3e8abb6d130c67275cd9daa08dbd6e4e4e", size = 6671824, upload-time = "2026-08-11T19:30:25.005Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/d5/85/577e2265cccf59daf48c460f0a8deeaf7dbe2991227a8859ab1eeab4945e/pyobjc_core-12.2.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:89acc6bc13aaa6e3f52b0ce652ede7e201edb6bf062741b246b0c5a44582f25f", size = 6477694, upload-time = "2026-08-11T19:30:28.821Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/77/0a/bd9f830c64c6f334530831e75c01bfe0a770a3fbb00fddc70329223118b3/pyobjc_core-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:59a77038ebe0ab1240f61c341e7fb67b8674f2b4cd41bc71a6472511a12b50f7", size = 6712233, upload-time = "2026-08-11T19:30:33.032Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyobjc-framework-cocoa"
|
||||
version = "12.2.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pyobjc-core" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/75/76/49c6da2c6a831020b4854ba20079d5a1030474bffc776b7b73c2eeff8c15/pyobjc_framework_cocoa-12.2.2.tar.gz", hash = "sha256:c96c0ef69a71afbbb0e6a7d594b455c5fe47d62e0db376ee7a2b4b828c16ace9", size = 3132831, upload-time = "2026-08-11T19:44:02.288Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/fd/2f/b67e73d8bc367e03fe7861cd9c49fff9dcfa6db83bc0630c0adcfb25b7fa/pyobjc_framework_cocoa-12.2.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:e106f395531e67694376b0f1184612cbeea3ec8b9bf56b55ef41d026171d2a2d", size = 388117, upload-time = "2026-08-11T19:32:43.161Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/e1/5d9b04ebb60042b9cb49adc2d33115e2f2c2e4ff7d548017bfaff8b7f536/pyobjc_framework_cocoa-12.2.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:600b1723184ca094931330e79355274949965460e23de38628d601b5a967baf9", size = 388181, upload-time = "2026-08-11T19:32:44.537Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b4/25/2a343357d5fe09bbe9c0e294dc03450866a0d6c1792fad36b6bcc00174c0/pyobjc_framework_cocoa-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:875f2aad73963faa81a6b36ae674fd494a4658d6d999e1075e0e2aca3d2391df", size = 392275, upload-time = "2026-08-11T19:32:45.631Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/1f/1a/b99521999b9f54b89aad928ddff0faad507abfe33bc46599454bfa48a4b2/pyobjc_framework_cocoa-12.2.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:889d7bbd4ba2d4941078bfbbfb882138e51dbead27df006abfe0f2e0d49b5b2e", size = 388368, upload-time = "2026-08-11T19:32:46.781Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6d/26/0c697dbc73dcc76bc0f68ea5aeed25bf7b05217df5102659e878501b2d5f/pyobjc_framework_cocoa-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:de69c5933750f3a4599ed962eccd92b6a71914c7e4318dacc7895738a8ae60d7", size = 392404, upload-time = "2026-08-11T19:32:47.918Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/df/82/502f740fd8f4e9ef741c9d40ba67467ab2c8196f2c09dcba12936d28a4fd/pyobjc_framework_cocoa-12.2.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0e8ace0d44a00d281281a723d17fcd05eea7544a38a6a512e1fd018ddb7aece2", size = 388585, upload-time = "2026-08-11T19:32:49.171Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/7d/3b/07ce3c0ab8d1e9e1bed74fea1bf1cce73527a365a7a23c755051d3be9865/pyobjc_framework_cocoa-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:8fe5b2e79c9530f667b4e58a87a3a15ea62f86a5d19eec405517ecbd4f454868", size = 392693, upload-time = "2026-08-11T19:32:50.283Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyobjc-framework-quartz"
|
||||
version = "12.2.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pyobjc-core" },
|
||||
{ name = "pyobjc-framework-cocoa" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/35/b1/426a37c7ae37280b3ffca2571fb48f211946aee2f4ca31a603ed1943c4a7/pyobjc_framework_quartz-12.2.2.tar.gz", hash = "sha256:810f97b210cfd93704d240860286dfd6df09f9f1c52525fc5c2166723aea3f9e", size = 3218295, upload-time = "2026-08-11T19:45:15.189Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ed/e4/8be95d2ff850f82fb55b44c63333a00a920bf8a73642e7d9c2f3638a26d2/pyobjc_framework_quartz-12.2.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:7f668979d0c7320bf8f7ed6e030da578f93ab0f5dd619b295ec735cd8d5faa34", size = 219003, upload-time = "2026-08-11T19:40:24.425Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/bb/ae/b515852dbe491171f2f2e2eb7739588a5eb7f36720a739545337b8c0d706/pyobjc_framework_quartz-12.2.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:0ec9751904ef975bf0789d760dc4fadcb400edc4ffe4a736eb54971968babe5c", size = 219404, upload-time = "2026-08-11T19:40:25.461Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/ff/5f/c7ee66f4483385396d91f65036c62f3dd20bccaa07354643ef17b259aa75/pyobjc_framework_quartz-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:63f6f0f3233dcf650aac1374781e78961b0b17b33e3351953bacf8bd0c430593", size = 224462, upload-time = "2026-08-11T19:40:26.647Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/b1/33/230ae7777b0909fe2c24f28413c51c860faebf762d824b097a0e2fb48304/pyobjc_framework_quartz-12.2.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:1f7f3d9010e38f03ea1fa266664c10ea349cd7492bd603b403584f49d713dbed", size = 219773, upload-time = "2026-08-11T19:40:27.64Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/25/eb/7482fdd384521916e98a6164be220494b1f7794792b1d60fa3f5207d84a4/pyobjc_framework_quartz-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:ebf8167ca2096cf3a05199decfa517be0df4c56048f49cf132bd6b1a6ab9c086", size = 224726, upload-time = "2026-08-11T19:40:28.718Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/33/67/b4b0ffc486b08492bfef4b33731d044b295f1696c8fb7d119c8367079139/pyobjc_framework_quartz-12.2.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:cee63b891c2b6b7ccf98f233175411529f3e80286f58438793b3634af79858f1", size = 219827, upload-time = "2026-08-11T19:40:29.764Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/aa/eb/5fb627c2457046883c6fd12d25c44db40c12bcde4622dc0f30851108e106/pyobjc_framework_quartz-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:8f58c589b5a76ba98f186b1f3b19fb1c8b730e82351f81fb62e6194f64a71622", size = 224767, upload-time = "2026-08-11T19:40:30.991Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyobjc-framework-security"
|
||||
version = "12.2.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pyobjc-core" },
|
||||
{ name = "pyobjc-framework-cocoa" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/c2/92/c304b7fc3a0fe7484a2a3cf25711e70c8fa2b6969d82f4010e35b9af2164/pyobjc_framework_security-12.2.2.tar.gz", hash = "sha256:33efab1ff7d18570148f8f3ddd44eca305f733aee00b9115d5263bef81018f65", size = 181827, upload-time = "2026-08-11T19:45:24.042Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/15/59/79722efbbb5cf6a313d364bb4faff39f9c165740e46acaa4d0a3d71c0f8c/pyobjc_framework_security-12.2.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:266f41995f2fc80660c8451bdb199a7e259a6cad02fbc1e0e2f69dd5576e2203", size = 41298, upload-time = "2026-08-11T19:41:27.54Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f1/7f/cef885aaf57f7b8c1a5c141dc118094d07558f6c289fabd63690abf30059/pyobjc_framework_security-12.2.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:ca580d5f56e1222d63f1322a4fbf63be0bad77e77cca084290310df007b3fdde", size = 41303, upload-time = "2026-08-11T19:41:28.427Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/87/4b/22e787fa03f44386d559a5bffca4e56f9d125c8616d13fb8c798b5968119/pyobjc_framework_security-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:67655616bd0b9e05bd6a18fa353c5a7bc1743f79f1774644dbb180a2c62bf65b", size = 42175, upload-time = "2026-08-11T19:41:29.188Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/47/b5/4040d093b67a155041325b518148cc432fe17de9968d4ed6f0279140b2a3/pyobjc_framework_security-12.2.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:c4726b41c96a611fa13880bcfcb38a32ac9256239adb5b48d559dc4d0c9d0b99", size = 41372, upload-time = "2026-08-11T19:41:30.101Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f9/3b/0b02750d476dc5c05497f71cdd8f12a02f9a4db00c65d084abf651f4a057/pyobjc_framework_security-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:54b9b7a03f2e4a7e1ac182239d63cb94bc3628293f39637c17d3ececd495a619", size = 42930, upload-time = "2026-08-11T19:41:31.062Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/37/7fff93e2e36185b77ad824b00b9ea28ab95dfed110bd36710cc744a93916/pyobjc_framework_security-12.2.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:786da49c319318bb4cf168755d4a9324a6b3720a3dd7503990249c2a27b661ee", size = 41376, upload-time = "2026-08-11T19:41:31.907Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/04/36/0dd489faa827bc56d2cf0de0e27a8bdba5267549e8f442a2407166be0f51/pyobjc_framework_security-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:f5afda32efbfdef150e921563b94a799ea104e575f4a95b8c5cd71a2322413a8", size = 42944, upload-time = "2026-08-11T19:41:32.694Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyobjc-framework-uniformtypeidentifiers"
|
||||
version = "12.2.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pyobjc-core" },
|
||||
{ name = "pyobjc-framework-cocoa" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/70/c6/31ac40c4d918baa36ca06d196bfec0f47f804a74684988cf424060469d98/pyobjc_framework_uniformtypeidentifiers-12.2.2.tar.gz", hash = "sha256:12f8ba77dcc949ffb9f0f48743cae326aebec8e69cb1ac55a1d1e04dca7bd59a", size = 20848, upload-time = "2026-08-11T19:45:37.634Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/79/c3/45ec69ed9fdcde5d0f229a031b610127c592d2c4674c3ff0e184d7f2741b/pyobjc_framework_uniformtypeidentifiers-12.2.2-py2.py3-none-any.whl", hash = "sha256:1dc6a538df07c410e4bfd6457adcb0b663a5e0df331905dbe135bcfd3f89ae57", size = 5045, upload-time = "2026-08-11T19:42:56.598Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pyobjc-framework-webkit"
|
||||
version = "12.2.2"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "pyobjc-core" },
|
||||
{ name = "pyobjc-framework-cocoa" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/6f/1f/766e338197f7051c25f23cb0d350caa88234b31c3a759127f2cbb67f3376/pyobjc_framework_webkit-12.2.2.tar.gz", hash = "sha256:e5588df2a73b377b59a994cc2a78b467e4341f4e4d28b52e8671e21a2811d3c1", size = 333834, upload-time = "2026-08-11T19:45:42.708Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b9/76/344b197a89878e8b103727984f2815bc38393515be5bf63aa7b847c414e0/pyobjc_framework_webkit-12.2.2-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ef37692f0280151bf8164a718e334a9b3cb0abfc5455be14172280de7e277505", size = 50371, upload-time = "2026-08-11T19:43:31.561Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/69/84/036541aaf4795c0022b6b1dda9a4e099e14b137012065a799a0b174947e5/pyobjc_framework_webkit-12.2.2-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:206f88451e1c3e152c72c16c2af2664646cd752a3007c9cda8029a9e3f0ec9a4", size = 50395, upload-time = "2026-08-11T19:43:32.434Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/46/f9/8525d01afc8e7898ef395e55891d932111099a3770b2e5f0eb901a57f3ca/pyobjc_framework_webkit-12.2.2-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:36bea435489daa20ead1390d6bf0b98659beac0fc5a281e502acc5da334ec9eb", size = 50865, upload-time = "2026-08-11T19:43:33.263Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/37/2e/1f815581ca8884d1cc1a577f98ed0f43454bb3aa12c4aa7562d33c18c353/pyobjc_framework_webkit-12.2.2-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:83a5c250125ecaaf680a405cf435a038e4b168d0305ba7ad14398d810a49cf87", size = 50502, upload-time = "2026-08-11T19:43:34.126Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f8/fb/3d48fb3deb0a57d25c118684dd13f702f856cadfcbd553b9a1ff5c8ba5fc/pyobjc_framework_webkit-12.2.2-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:147f0f18c0ddd70a1d05f88cf42a89b423b191957db6faf508cbbdb33092864c", size = 50971, upload-time = "2026-08-11T19:43:34.963Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/56/79/5dfb4cb4cc3bf1f534a154fd6d9737a53288224e5eeca14cb0a4b18e5665/pyobjc_framework_webkit-12.2.2-cp315-cp315-macosx_10_15_universal2.whl", hash = "sha256:0be3ed885100dd38c6b927c9a25a63f22fd624bc4c6bb3d3af14fab5dcdcfc97", size = 50501, upload-time = "2026-08-11T19:43:35.835Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/03/5b/e1e2f3f2a2d9194467898494cf102eaa96db1a395278a961861254ba0c48/pyobjc_framework_webkit-12.2.2-cp315-cp315t-macosx_10_15_universal2.whl", hash = "sha256:88c896d89764675af1ef85c6bda8740e50451e31bcd1d1d2ef59323acc9916ed", size = 50963, upload-time = "2026-08-11T19:43:37.152Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytest"
|
||||
version = "9.1.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
||||
{ name = "iniconfig" },
|
||||
{ name = "packaging" },
|
||||
{ name = "pluggy" },
|
||||
{ name = "pygments" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/e4/47/b9efed96c114afcfa3c9d3fe98a76a1d14c74a9e266d397cf6eb64be5e01/pytest-9.1.1.tar.gz", hash = "sha256:1088fbde8f2b49d95a549a195707afa7a76a3ce9bcadc26b6d71f0ffda5fe313", size = 1636369, upload-time = "2026-06-19T10:58:32.857Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "python-yakh"
|
||||
version = "0.4.1"
|
||||
@@ -171,6 +369,41 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/22/42/72571b24514b5f59c328f12e5294b246958951b889fac2bd5321e08a4bab/python_yakh-0.4.1-py3-none-any.whl", hash = "sha256:d69507e13e03d09cefd88030f74b6d5369b67de004be975a35be28eb286122e4", size = 5826, upload-time = "2025-01-14T18:08:13.618Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pythonnet"
|
||||
version = "3.1.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "clr-loader" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/05/57/da1992e44663b71365c6e842c8d7fa453d4ec45fb99a68cfee5b7e944d3c/pythonnet-3.1.0.tar.gz", hash = "sha256:7b34c382905d10a371509ffafd64cae0416305c28817738a9cd138336f4e9991", size = 250599, upload-time = "2026-05-23T20:30:21.578Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/ac/4b/52414f442624d2589f5374a48c08d5ae94f24bea67fc13a20a752884e5b7/pythonnet-3.1.0-cp310.cp311.cp312.cp313.cp314-none-any.whl", hash = "sha256:698dd88edc198819ad63b624a6ebe76208c7b46e4fe13626f65e484f0358d6ba", size = 217578, upload-time = "2026-05-23T20:30:19.527Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/db/67/031124fdcb937c266a3265118525bbf6dc13b8c79786d6a7290aecb6e7bb/pythonnet-3.1.0-cp310.cp311.cp312.cp313.cp314-none-win32.win_amd64.whl", hash = "sha256:7bdd4de03df3547a48122a3989265c8b31d5be0d19dadffa009eec7df8085e0b", size = 1644898, upload-time = "2026-05-23T20:30:16.213Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pywebview"
|
||||
version = "6.2.1"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "bottle" },
|
||||
{ name = "proxy-tools" },
|
||||
{ name = "pyobjc-core", marker = "sys_platform == 'darwin'" },
|
||||
{ name = "pyobjc-framework-cocoa", marker = "sys_platform == 'darwin'" },
|
||||
{ name = "pyobjc-framework-quartz", marker = "sys_platform == 'darwin'" },
|
||||
{ name = "pyobjc-framework-security", marker = "sys_platform == 'darwin'" },
|
||||
{ name = "pyobjc-framework-uniformtypeidentifiers", marker = "sys_platform == 'darwin'" },
|
||||
{ name = "pyobjc-framework-webkit", marker = "sys_platform == 'darwin'" },
|
||||
{ name = "pythonnet", marker = "sys_platform == 'win32'" },
|
||||
{ name = "qtpy", marker = "sys_platform == 'openbsd6'" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/59/4a/05307135dafba67778669d194bd1a3822a7685ec9ee8a6d7e70856c1a551/pywebview-6.2.1.tar.gz", hash = "sha256:71b7136752e40824655304d938efb62014218d1a90bd8e87e1cbdb1ce9c466af", size = 513126, upload-time = "2026-04-15T09:02:16.595Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/3d/25/9491695c22c4842c5b3903b4dc172e0eecf67a27c0af34a71512c9b76a0a/pywebview-6.2.1-py3-none-any.whl", hash = "sha256:9d07275f53894ab4d5e2e0e996227193e7187dec276d9b624dccbce029216b46", size = 525463, upload-time = "2026-04-15T09:02:10.186Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "pywin32"
|
||||
version = "312"
|
||||
@@ -199,6 +432,18 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/de/3d/8161f7711c017e01ac9f008dfddd9410dff3674334c233bde66e7ba65bbf/pywin32_ctypes-0.2.3-py3-none-any.whl", hash = "sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8", size = 30756, upload-time = "2024-08-14T10:15:33.187Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "qtpy"
|
||||
version = "2.4.3"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "packaging" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/70/01/392eba83c8e47b946b929d7c46e0f04b35e9671f8bb6fc36b6f7945b4de8/qtpy-2.4.3.tar.gz", hash = "sha256:db744f7832e6d3da90568ba6ccbca3ee2b3b4a890c3d6fbbc63142f6e4cdf5bb", size = 66982, upload-time = "2025-02-11T15:09:25.759Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/69/76/37c0ccd5ab968a6a438f9c623aeecc84c202ab2fabc6a8fd927580c15b5a/QtPy-2.4.3-py3-none-any.whl", hash = "sha256:72095afe13673e017946cc258b8d5da43314197b741ed2890e563cf384b51aa1", size = 95045, upload-time = "2025-02-11T15:09:24.162Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "questo"
|
||||
version = "0.4.2"
|
||||
@@ -234,13 +479,22 @@ wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/5d/40/e1e72872c6354b306daef1703549e8e83b4d43cfea356311bf722a043752/setuptools-83.0.0-py3-none-any.whl", hash = "sha256:29b23c360f22f414dc7336bb39178cc7bcbf6021ed2733cde173f09dba19abb3", size = 1008090, upload-time = "2026-07-04T15:31:20.885Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.16.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/f6/cc/6253133b5bb138fc3306cebfbda2c520f545d36b5be2c7255cc528bb45d6/typing_extensions-4.16.0.tar.gz", hash = "sha256:dc983d19a509c94dba722ee6abd33940f7c05a89e243c47e907eb4db6f1a43e5", size = 113555, upload-time = "2026-07-02T08:40:05.92Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/49/d3/b8441a820a491ddfc024b0b0cf0393375b75ea13866d9c66727e54c2fc80/typing_extensions-4.16.0-py3-none-any.whl", hash = "sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8", size = 45571, upload-time = "2026-07-02T08:40:04.659Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "xlsx-clean"
|
||||
version = "0.3.0"
|
||||
version = "1.0.0"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "beaupy" },
|
||||
{ name = "dearpygui" },
|
||||
{ name = "pywebview" },
|
||||
{ name = "pywin32", marker = "sys_platform == 'win32'" },
|
||||
]
|
||||
|
||||
@@ -249,11 +503,19 @@ desktop = [
|
||||
{ name = "pyinstaller" },
|
||||
]
|
||||
|
||||
[package.dev-dependencies]
|
||||
test = [
|
||||
{ name = "pytest" },
|
||||
]
|
||||
|
||||
[package.metadata]
|
||||
requires-dist = [
|
||||
{ name = "beaupy", specifier = ">=3.12.0" },
|
||||
{ name = "dearpygui", specifier = ">=2.0.0" },
|
||||
{ name = "pyinstaller", marker = "extra == 'desktop'", specifier = ">=6.21.0" },
|
||||
{ name = "pywebview", specifier = ">=5.0" },
|
||||
{ name = "pywin32", marker = "sys_platform == 'win32'", specifier = ">=312" },
|
||||
]
|
||||
provides-extras = ["desktop"]
|
||||
|
||||
[package.metadata.requires-dev]
|
||||
test = [{ name = "pytest", specifier = ">=8.0" }]
|
||||
|
||||
Reference in New Issue
Block a user