Get module names from installed package names and back
Project description
pkgmod
Get module names from installed package names and back.
Example usage:
>>> import pkgmod
>>> pkgmod.get_package_name("impala")
('impyla', False)
This returns a tuple with package name and a bool, which tells whether it's a standard library in Python or not. For packages this only works if the package is installed.
>>> pkgmod.get_module_names("impyla")
['impala']
>>> pkgmod.get_module_names("Cython")
['Cython', 'cython', 'pyximport']
This returns the module names included in a given package (which also needs to be installed).
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
pkgmod-0.0.1.tar.gz
(2.4 kB
view details)
File details
Details for the file pkgmod-0.0.1.tar.gz
.
File metadata
- Download URL: pkgmod-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04145528670aad24ba4ebfca3672aab76a3a1fb36629a9d98bcbbcf1705e13c8 |
|
MD5 | 127e5b91a81371d889d3582c58e5893e |
|
BLAKE2b-256 | 952d69c832e3420b8f9b1858f92f84b9979e62f77f9bf6677bcc8c0674173ff1 |