Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.
/ python-deps Public archive

python-deps is a lightweight python module that statically computes the external imports of a python project.

License

Notifications You must be signed in to change notification settings

sourcegraph/python-deps

Repository files navigation

python-deps

xrefs funcs top func library users status

python-deps is a lightweight python module that computes the external imports of a python project. It does so statically, without importing or running any code from the module itself.

The command and tests should be run from a clean virtualenv python.

This uses the standard lib associated with whatever python installation used to run the module. A future version might support specifying a path to a python env directory, to decouple the choice of python used to execute the module vs. the python from which the names of stdlib modules are detected.

Note: this module is a work-in-progress.

Installation

pip install git+https://github.com/sourcegraph/python-deps

Running

depdump.py path/to/project/root

Running tests

  • checkout: git clone https://github.com/sourcegraph/python-deps.git
  • run: nosetests -s

Contributors

About

python-deps is a lightweight python module that statically computes the external imports of a python project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages