# https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-script-metadata # https://peps.python.org/pep-0723/ snippet inline-script "Inline script metadata" b # /// script # requires-python = ">=3.11" # dependencies = [ # "requests", # ] # /// endsnippet snippet #! "Run script with python3" b #!/usr/bin/env python3 endsnippet snippet #!pipx "Run script with pipx" b #!/usr/bin/env -S pipx run --path # /// script # requires-python = ">=3.11" # dependencies = [ # "requests", # ] # /// endsnippet snippet #!uv "Run script with uv" b #!/usr/bin/env -S uv run --script # /// script # requires-python = ">=3.11" # dependencies = [ # "requests", # ] # /// endsnippet