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

sourcegraph/pydep

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

pydep

pydep is a simple module / command line tool that will print the dependencies of a python project.
pydep is still under active development and should be considered "alpha"-quality software.

Install

pip install pydep                                   # install latest release
pip install git+git://github.com/sourcegraph/pydep  # install from dev master

Usage

pydep-run.py -h  # print out options
pydep-run.py dep <src-directory>  # run pydep on directory
pydep-run.py demo                 # print some info out that demonstrates capabilities

For example,

> pip install pydep
> git clone https://github.com/mitsuhiko/flask
> cd flask
> pydep-run.py dep .
[{"resolved": true, "project_name": "Werkzeug", "unsafe_name": "Werkzeug", "key": "werkzeug", "modules": null, "packages": ["werkzeug", "werkzeug.debug", "werkzeug.contrib", "werkzeug.testsuite", "werkzeug.testsuite.contrib"],
"type": "setuptools", "specs": [[">=", "0.7"]], "repo_url": "git://github.com/mitsuhiko/werkzeug", "extras": []},
{"resolved": true, "project_name": "Jinja2", "unsafe_name": "Jinja2", "key": "jinja2", "modules": null, "packages":
["jinja2", "jinja2.testsuite", "jinja2.testsuite.res"], "type": "setuptools", "specs": [[">=", "2.4"]], "repo_url":
"git://github.com/mitsuhiko/jinja2", "extras": []}, {"resolved": true, "project_name": "itsdangerous", "unsafe_name":
"itsdangerous", "key": "itsdangerous", "modules": ["itsdangerous"], "packages": null, "type": "setuptools", "specs":
[[">=", "0.21"]], "repo_url": "http://github.com/mitsuhiko/itsdangerous", "extras": []}, {"resolved": true,
"project_name": "click", "unsafe_name": "click", "key": "click", "modules": null, "packages": ["click"], "type":
"setuptools", "specs": [[">=", "0.6"]], "repo_url": "http://github.com/mitsuhiko/click", "extras": []}]

Additional requirements

  • pip 7.0+
  • curl, unzip, gunzip, tar

Tests

Install nose (pip install nose). Then, nosetests -s from the root repository directory.

Contributing

Make a pull request!

About

a simple command line tool / package that prints the dependencies of a python project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages