Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
Something went wrong. Try again.
1234567891011121314151617181920212223#! /usr/bin/env -S uv run --script# /// script# requires-python = ">=3.12"# dependencies = [# "duckdb",# ]# ///
from sys import stdinimport duckdb
print('Hello from duck-ui!')# run `CALL start_ui()` on duckdbconn = duckdb.connect()conn.execute('CALL start_ui()')# keep openif stdin.isatty(): input('Press Enter to exit...')else: print('Running as a daemon; no user interaction.')conn.close()