Add NiceGUI web UI for set/ink/serial selection
Extract shared create_datasheet() for CLI and web. New xlsx-clean-web entry point serves a local NiceGUI form with cascading dropdowns while keeping the existing CLI. Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
39
README.md
39
README.md
@@ -10,27 +10,40 @@ cells, blank notes, write the batch serial, and save under a new `[SERIAL]` name
|
||||
| Windows | `com` | Microsoft Excel via `pywin32`; loads add-ins from `strings.txt`; leaves Excel open |
|
||||
| Linux / macOS | `ooxml` | Surgical OOXML zip edit; preserves formulas, formatting, queries/connections on disk |
|
||||
|
||||
Force a backend with `--backend com` or `--backend ooxml`.
|
||||
Force a backend with `--backend com` or `--backend ooxml` (CLI) or the Backend
|
||||
dropdown in the web UI.
|
||||
|
||||
The OOXML path does **not** refresh Power Query, evaluate formulas, or load `.xlam`/`.xla`
|
||||
add-ins. Open the written file in Excel for refresh/calc. Prefer `com` on Windows when
|
||||
you need add-ins and a live Excel session.
|
||||
|
||||
## Interfaces
|
||||
|
||||
### Web UI (NiceGUI)
|
||||
|
||||
Modern browser form for Set → Ink color → Serial:
|
||||
|
||||
```bash
|
||||
xlsx-clean-web
|
||||
# or
|
||||
python -m xlsx_clean.web_app
|
||||
```
|
||||
|
||||
Opens `http://127.0.0.1:8080` (bind address/port: `--host`, `--port`).
|
||||
|
||||
### CLI
|
||||
|
||||
```bash
|
||||
xlsx-clean
|
||||
# or
|
||||
python -m xlsx_clean.clean_cells --backend ooxml
|
||||
```
|
||||
|
||||
On Windows, `src/xlsx_clean/new_xslx.bat` runs the CLI module entry point.
|
||||
|
||||
## Config
|
||||
|
||||
- `src/xlsx_clean/file_data.csv` — product dirs, filename patterns, cells to clear/set
|
||||
- `src/xlsx_clean/strings.txt` — prompts + Windows add-in paths (COM only)
|
||||
- `XLSX_CLEAN_ROOT` — optional root that replaces `D:\OpenCloud` in CSV paths
|
||||
(example: `export XLSX_CLEAN_ROOT=/mnt/opencloud`)
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
# installed entry point
|
||||
xlsx-clean
|
||||
|
||||
# or module
|
||||
python -m xlsx_clean.clean_cells --backend ooxml
|
||||
```
|
||||
|
||||
On Windows, `src/xlsx_clean/new_xslx.bat` runs the same module entry point.
|
||||
|
||||
Reference in New Issue
Block a user