Skip to content

Instantly share code, notes, and snippets.

@chrishwiggins
Last active August 9, 2016 00:59
Show Gist options
  • Save chrishwiggins/641b315d910a60b1ad01 to your computer and use it in GitHub Desktop.
Save chrishwiggins/641b315d910a60b1ad01 to your computer and use it in GitHub Desktop.
find . | grep '\.py' | grep -v -e '/venv/' -e '(' -e ')' | xargs -I % grep import % | sed -e 's/^[ ]*//' | grep -e '^from ' -e '^import ' | awk '{print $2}' | sed -e 's/^[\.]*//' | cut -d\. -f1 | tr '[A-Z]' '[a-z]' | sort -bfd | uniq -c | sort -nr | head -20
@chrishwiggins
Copy link
Author

see also

https://gist.github.com/chrishwiggins/7518300e0d8649d8d791

to restrict to the core scipy packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment