Skip to content

Instantly share code, notes, and snippets.

View 3rdcycle's full-sized avatar

Lukas Heiniger 3rdcycle

View GitHub Profile
@Flamefire
Flamefire / deptree2exts_list.py
Last active September 12, 2023 11:07 — forked from boegel/deptree2exts_list.py
Find order of dependencies of a python package, put both into a PATH accessible folder (e.g. ~/.local/bin) and make executable
#!/usr/bin/env python
import json
import sys
import pkg_resources
from pprint import pprint
if len(sys.argv) != 3:
sys.stderr.write("ERROR: Usage: %s <path to JSON file with output of `pipdeptree -j <pkg>`> <pkg name>\n" % sys.argv[0])
sys.exit(1)