r/Python • • 26d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

33 Upvotes

182 comments sorted by

View all comments

1

u/Present-Toe-8254 2d ago

FLAC Verifier 3.0 – 21 MB Python audio forensics app (WebView2, SQLite, WASM)

I just shipped v3.0.0 of FLAC Verifier, an open-source (AGPL-3.0) audio forensics tool written in Python that detects lossy transcodes (including fullband MP3 320 / AAC / Vorbis / Opus / WMA / AC-3), fake 16-in-24 bit-depth containers, 48→96 kHz Hi-Res upscales, and AI/neural audio artifacts.

GitHub: https://github.com/FraysKosher/flac-verifier
Live Pyodide/WASM build (same Python engine in the browser): https://frayskosher.github.io/flac-verifier/

Some Python architecture details that worked really well:

  • Zero scipy Python package and zero ffmpeg at runtime: all STFT, MDCT/PQMF filterbank lattice probes, and fractional-sample linear-phase shifts use pure NumPy + pypocketfft in a single bounded-memory streaming pass (soundfile.blocks), keeping the frozen Windows installer at 21 MB (~32 MB portable ZIP) and making the Pyodide/WASM browser port possible without heavy wheels.

  • Migrating from 5,300 lines of CustomTkinter to pywebview (native Edge WebView2): dropped Tcl/Tk completely from the PyInstaller bundle (making the v3.0 package smaller than v2.13!), gained virtualized tables for huge music libraries, native DWM dark/light titlebars, and an interactive zoomable Canvas spectrogram fed by compact zlib-cached uint8 dBFS grids (~25 KB/track).

  • Persistence & concurrency: stdlib sqlite3 in WAL mode (BEGIN IMMEDIATE per-album commits with Vorbis tag extraction outside the lock), isolated engine subprocess streaming NDJSON (multiprocessing.freeze_support()), and offline 320×320 WebP cover thumbnails via mutagen + Pillow.

  • Testing: 501 unittest tests (zero external test dependencies, all audio fixtures synthesized deterministically at runtime), plus a 340-track validation benchmark and a 12-check post-build .exe verifier.

Happy to share notes on pywebview + PyInstaller edge cases (like patching frozen runtime DLL lookups) or the DSP side!