Determine what 3rd-party packages a project imports.
Project description
packageLister
Determine what 3rd-party packages and versions a project imports.
Install with:
pip install packageLister
Only has one function:
packageLister.scan()
It takes one optional argument and that is the directory or file to scan.
If an argument isn't given, the current working directory will be scanned.
Usage:
>>> from pathlib import Path >>> import packageLister >>> import json >>> packages = packageLister.scan() [___________________________________________________]-100.00% Scanning packageLister.py >>> print(json.dumps(packages, indent=2)) { "pathCrawler": { "files": [ "src/packageLister/packageLister.py" ], "version": "0.1.0" }, "printBuddies": { "files": [ "src/packageLister/packageLister.py" ], "version": "0.4.1" } }Can also be used as a cli tool:
>packageLister packageLister -sf [___________________________________________________]-100.00% Scanning packageLister_cli.py Packages used in packageLister: pathCrawler==0.0.3 src\packageLister\packageLister.py printBuddies==0.2.2 src\packageLister\packageLister.pyCli help:
>packageLister -h usage: packageLister [-h] [-p PROJECTPATH] [-sf] [-gr]options: -h, --help show this help message and exit -p PROJECTPATH, --projectPath PROJECTPATH The project directory path to scan. -sf, --showFiles Show which files imported each of the packages. -gr, --generateRequirements Generate a requirements.txt file in --projectPath.
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
packagelister-0.1.2.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for packagelister-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69b636de1b80e8fd79d1720bf7238f263fc663ff95162809a60cabc5bfc735e7 |
|
MD5 | 288578105637618fb4b3300c57cc771e |
|
BLAKE2b-256 | db22ddb175e72e8a7d247ee590d9bc6a770dfee2c609f46c7b5b3296535a8504 |