Python Inline Script Metadata
PEP-723
Created:
The PEP-723 lays out the intentions and how the metadata that can be embedded into python scripts to assist launchers, IDEs etc to interact with the script. uv was the first tool (to my knowledge) that brought this into wide attention.
Since then many python ecosystem tools have started to leverage this.
- Marimo – Serializing package requirements in marimo notebooks
- nanodjango uses this illustrate how a single file can used to run a web application with the help of PEP-723 inline script metadata.