Skip to main content

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()


Usage:
>>> from pathlib import Path
>>> import packageLister
>>> packageLister.scan(Path.cwd())
 [___________________________________________________]-100.00% Scanning packageLister.py
{'pathCrawler==0.0.3': ['src/packageLister/packageLister.py'], 'printBuddies==0.2.2': ['src/packageLister/packageLister.py']}
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.py
Cli help:
>packageLister -h
usage: packageLister [-h] [-sf] [-gr] projectPath

positional arguments: projectPath The project directory path to scan.

options: -h, --help show this help message and exit -sf, --showFiles Show which files imported each of the packages. -gr, --generateRequirements Generate a requirements.txt file in --projectPath.

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

packagelister-0.1.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

packagelister-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file packagelister-0.1.1.tar.gz.

File metadata

  • Download URL: packagelister-0.1.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for packagelister-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5b4ee6c329ed433086d968afbd33b6630af723fc44f3650f4ba22955f018faf5
MD5 42584d194b1630c94bfd86860cff9f37
BLAKE2b-256 421c16a679f895a5f24b96f640ce89c8978bce8eae8d6652875528232209352c

See more details on using hashes here.

File details

Details for the file packagelister-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for packagelister-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 edc58325ba67ef8ea031b3dfcb685f603145b94e99890aac9d4cebb7e61be260
MD5 83830479dd03668b4aad8dd927adee84
BLAKE2b-256 3f42235f5edf6d20d79f09e31c534855b52c59a64cbc428b8f4b64e50be17a9e

See more details on using hashes here.

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