Given a module on pypi, is there a way to study the module and show all the dependencies?

For example, I am looking for a command line fragment to display all the dependencies of a python module, for example. http://pypi.python.org/pypi/django-celery given the URL. Does it exist?

+6
source share
2 answers

I would use a combination of virtualenv and pip to do this work. This snippet would look like this:

virtualenv <path_to_a_new_env> --no-site-packages <using this virtual env> && pip install <url or package name> <using this virtual env> && pip freeze --- <using this virtualenv> - source bin/activate on Linux scipts/activate.bat on linux 

The problem is that you will only list dependencies, but not versions, if any specific information is required.

+2
source

Firstly, there is no way to retrieve information through a URL. All packages and all dependency dependencies, etc. Must be installed for full details.

In the Zope world there is something like

http://pypi.python.org/pypi/z3c.recipe.depgraph/0.5

available.

I can’t remember calling the used lining module ...

Also check

http://furius.ca/snakefood/

http://pypi.python.org/pypi/tl.eggdeps

0
source

Source: https://habr.com/ru/post/891259/


All Articles