Today I learned (TIL) · 2025

TIL yearly
Published

April 19, 2025

19. April

Format Markdown with mdformat and uv.

uvx mdformat markdown-file.md

16. January

Run a Python script with uv in a temporary virtual environment, specifying the Python version and script dependencies.

uv run --python 3.11 --with cowsay python -c 'import cowsay;cowsay.cow("Hello Cow")'

03. January

self-installing Python scripts with uv (2024)

#!/usr/bin/env -S uv run --script