pep723

lib.pep723.parseScript

Type: parseScript :: string -> AttrSet

Parse the script metadata section from a PEP-723 script.

script

: Function argument

::: {.example #function-library-example-lib.pep723.parseScript}

lib.pep723.parseScript usage example

# parseScript (readFile ./script.py)
{
  requires-python = [ ];  # List of parsed version conditions (lib.pep440.parseVersionConds)
  dependencies = [ ];  # List of parsed PEP-508 strings (lib.pep508.parseString)
}

:::