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
Release history Release notifications | RSS feed
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.0.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for findpydeps-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8758a364354ce6663dbf159a304c4d67ca5e2d019aff02bcc18d55c1ebaacfe5 |
|
MD5 | 37a91b20500ce84eef99b3f412d555c9 |
|
BLAKE2b-256 | bcecf9e67333638427f9ece12e11128d6c20b6a911bb4295c59faae31eaa9841 |