Skip to content

Instantly share code, notes, and snippets.

View asdkant's full-sized avatar

Ariel Kanterewicz asdkant

  • Baufest
  • Buenos Aires, Argentina
View GitHub Profile
@asdkant
asdkant / gist:0e70f10aa82864610799b9f2636c632b
Last active July 22, 2025 15:21
get TOML from inline python script metadata using awk
inline script metadata docs: https://packaging.python.org/en/latest/specifications/inline-script-metadata/
This awk line is useful because pip and uv can't read the TOML in the .py header directly, but they can read a separate TOML file without issue.
user@host:/tmp$ head -n 13 main.py
# /// script
# authors = [