Skip to main content

Find the python dependencies used by your python files and projects

Project description

findpydeps

Find the python dependencies used by your python files and projects.

Installation

Simply install it via pip:

pip install findpydeps

Usage

For exhaustive usage information, please refer to the findpydeps -h output (or python3 -m findpydeps -h)

Example usage:

findpydeps -i "/home/$USER/python/example-project/" test.py ../test2.py

The output can be redirected to a requirements.txt file, like this:

findpydeps -i . > requirements.txt
# or maybe a better alternative :
# findpydeps -i main.py -l
# or (the same) :
# findpydeps --input main.py --follow-local-imports

and then use the generated file:

python3 -m pip install -r requirements.txt

Todo

  • Follow relative imports with the -l/--follow-local-imports switch
  • Verify package names on pypi.org (check if installable via pip)
  • Exclude package names option
  • Add package names option
  • Better package description on pypi.org

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

findpydeps-0.2.1.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

findpydeps-0.2.1-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page