Expand description
PEP 723 script support
This module provides functionality for running Python scripts with inline dependency specifications (PEP 723):
- Parsing inline metadata from script comments
- Creating ephemeral environments for script execution
- Caching environments by dependency hash
Structs§
- Script
Metadata - Metadata extracted from a PEP 723 script
- Script
Runner - Script runner for PEP 723 scripts
Functions§
- is_
pep723_ script - Check if a file is a Python script that might have PEP 723 metadata
- might_
have_ metadata - Check if a file looks like it might have PEP 723 metadata
- parse_
script_ metadata - Parse PEP 723 inline script metadata from script content