Skip to main content

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.

Metadata

Release files for libido 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libido 0.0.9
File Size Uploaded
libido-0.0.9.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libido 0.0.9
File Interpreter ABI Platform
libido-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / libido-0.0.9.tar.gz

Download URL libido-0.0.9.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7c44317adf7d0f0a49ef972f063fac32f76239f820674a57606d042f1c72ea85
BLAKE2b-256 checksum
How to use checksums
09a3bc5748af5c366834d2472332f86338e2919f94f11edc93dc6217507ddff4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / libido-0.0.9-py3-none-any.whl

Download URL libido-0.0.9-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9b3e1ab5bc59bf01cba0ae2b44045a9db67f071f9bd856f4469784b2518d600
BLAKE2b-256 checksum
How to use checksums
ce25968bb54a1aeb50a178e9858273e7c66a95084305d2ed1aa88f874c82d086
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page