add noiz.py

This commit is contained in:
Armin 2026-07-07 00:38:06 +02:00
commit e9b8a0bc15
2 changed files with 16 additions and 0 deletions

View file

@ -23,3 +23,11 @@ There is a live demo available at [bsd.pm/noiz](https://bsd.pm/noiz/).
## Usage ## Usage
Open `index.html` in any modern browser. Click **+Folder**, **+Files**, or drag audio files onto the window. Open `index.html` in any modern browser. Click **+Folder**, **+Files**, or drag audio files onto the window.
## Native App (noiz.py)
`noiz.py` is a fully fledged local native application wrapper that runs `noiz://` in its own desktop window using [pywebview](https://pywebview.flowrl.com/). It launches the noiz:// app as a standalone application with native window via Python's webview, rather than running inside a browser tab. noiz.py is (as of now) 8 lines long.
```bash
pip install pywebview && python noiz.py
```

8
noiz.py Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env python3
import webview
webview.create_window(
"noiz://",
"https://bsd.pm/noiz/"
)
webview.start()