Skip to content

Instantly share code, notes, and snippets.

@gabrielfalcao
Last active April 20, 2026 09:14
Show Gist options
  • Select an option

  • Save gabrielfalcao/bee26043d06ab9c47cbc6eb61b50ce68 to your computer and use it in GitHub Desktop.

Select an option

Save gabrielfalcao/bee26043d06ab9c47cbc6eb61b50ce68 to your computer and use it in GitHub Desktop.
using https://crates.io/crates/jaq to extract dependencies from pyproject.toml #jaq
jaq -r '.project.dependencies[] | match("(?<package>[a-zA-Z_-]+[a-zA-Z0-9_-]*)(?<features>.*?)(?<boolean_op>[<=>]+)(?<version>[0-9a-zA-Z._-]+)$") | .captures | map_values({key:.name,value:.string}) | from_entries' pyproject.toml | jaq -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment