"""Create an extra Stork board (or use the public Start button). Usage: STORK_URL=https://stork.levkin.ca \\ STORK_BOARD_TITLE='Dan & Mira' \\ .venv/bin/python scripts/create_board.py """ from __future__ import annotations import os import httpx def main() -> int: base = os.environ.get("STORK_URL", "http://127.0.0.1:8094").rstrip("/") title = os.environ.get("STORK_BOARD_TITLE", "").strip() or "Name board" with httpx.Client(base_url=base, timeout=30.0) as client: res = client.post("/api/boards", json={"title": title}) res.raise_for_status() data = res.json() print(f"Board: {data['title']} ({data['id']})") print(f"Share URL: {data['url']}") return 0 if __name__ == "__main__": raise SystemExit(main())