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).
Metadata
Release files for pkgmod 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pkgmod-0.0.1.tar.gz | 2.4 kB | Details |
Release files / pkgmod-0.0.1.tar.gz
| Download URL | pkgmod-0.0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04145528670aad24ba4ebfca3672aab76a3a1fb36629a9d98bcbbcf1705e13c8
|
|
BLAKE2b-256 checksum How to use checksums |
952d69c832e3420b8f9b1858f92f84b9979e62f77f9bf6677bcc8c0674173ff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|