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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libido-0.0.9.tar.gz.
File metadata
- Download URL: libido-0.0.9.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c44317adf7d0f0a49ef972f063fac32f76239f820674a57606d042f1c72ea85
|
|
| MD5 |
662fca40c25730e6e8ffebcac32d2162
|
|
| BLAKE2b-256 |
09a3bc5748af5c366834d2472332f86338e2919f94f11edc93dc6217507ddff4
|
File details
Details for the file libido-0.0.9-py3-none-any.whl.
File metadata
- Download URL: libido-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9b3e1ab5bc59bf01cba0ae2b44045a9db67f071f9bd856f4469784b2518d600
|
|
| MD5 |
8ec80bf7eb52a42983b72c36b549e2f2
|
|
| BLAKE2b-256 |
ce25968bb54a1aeb50a178e9858273e7c66a95084305d2ed1aa88f874c82d086
|