Skip to content

Get module names from installed package names and back

License

Notifications You must be signed in to change notification settings

Mikata-Project/pkgmod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

Get module names from installed package names and back

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages