What This is a collection of snippets that I consider best practice. script.py The skeleton for a one-off Python script that uses PEP 723 – Inline script metadata and uv to install structlog. Further reading: simple config for scripts · Issue #665 · hynek/structlog structlog config with loglevel name shebang mode is also incredibly useful and allows execution like ./script.sh #!/... | Hacker News