# Python Inline Script Metadata

- Page: https://shared.btbytes.com/p/inline-script-metadata
- Date: 2024-09-25
- Tags: python

The [PEP-723](https://peps.python.org/pep-0723/) 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](https://simonwillison.net/2024/Sep/17/serializing-package-requirements-in-marimo-notebooks/)
- [nanodjango](https://nanodjango.readthedocs.io/en/latest/usage.html#running-it-as-a-standalone-script) uses this illustrate how a single file can used to run a web application with the help of PEP-723 inline script metadata.
