Skip to main content

Discover which libs are imported by a set of python files

Project description

Explore Python source code to find dependencies

Use pip show if you want to access the explicit dependencies of a python package.

But, if you have a set of python files and want to know what they are importing, libido is a way to go.

Installation & usage

pip install libido
libido mod.py pak/*.py pak2/

Options

There is some options. See libido --help.

Most interestings may be --python-version to provide the python version of the code (because stdlib is not the same accross python versions), --all-deps to list all deps, including the one from stdlib (default is only the non-stdlib one), --show-globs to show for each dependencies which input glob needs it, or --porcelain for a parsable output.

How does it works ?

Libido parses the source code with redbaron find all import lines, and compare list of imported modules with historical records provided by stdlibs to decide which imported packages belong to the stdlib.

Yes, these packages exists. That's so cool. Please send your thanks to the author of redbaron and stdlibs.

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

libido-0.0.9.tar.gz (4.8 kB view hashes)

Uploaded source

Built Distribution

libido-0.0.9-py3-none-any.whl (4.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page