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
MIT License
Copyright (c) 2021 Nicolas Reyland
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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
Built Distribution
Hashes for findpydeps-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b514ba918024b32d49b67a27f8bf6e75b73f5de6dbd3531e9ee2c6e990228d1 |
|
MD5 | e66922ff9506eea3d007b630ce94a652 |
|
BLAKE2b-256 | fc0f70a8f675c150accfe1320b368d6fe6ac98746e0a863fc132da8b9fc60403 |