Skip to main content

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)

Source distribution for pkgmod 0.0.1
File Size Uploaded Provenance Actions
pkgmod-0.0.1.tar.gz 2.4 kB Without provenance Details for pkgmod-0.0.1.tar.gz

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

Security for pkgmod 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

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