8.4.12. pymodaq_utils.packages module
- pymodaq_utils.packages.extract_authors_from_description(description)[source]
returns the authors as a list from the plugin package description (it should follow the template structure)
- Parameters:
description (
(str))- Return type:
listofstring
- pymodaq_utils.packages.get_entrypoints(group='pymodaq.plugins')[source]
Get the list of modules defined from a group entry point
Because of evolution in the package, one or another of the forms below may be deprecated. We start from the newer way down to the older
- Parameters:
group (
str) – the name of the group
- pymodaq_utils.packages.get_metadata_from_json(json_as_dict)[source]
Transform dict of metadata from pypi to a simpler dict
- Return type:
- pymodaq_utils.packages.get_package_metadata(name, version=None)[source]
Retrieve the metadata of a given package on pypi matching or not a specific version
- pymodaq_utils.packages.get_pymodaq_specifier(requirements)[source]
Get specifiers for pymodaq version from a list of requirements
- Return type:
SpecifierSet
- pymodaq_utils.packages.get_pypi_package_list(match_name=None, print_method=<bound method Logger.info of <Logger pymodaq.packages (DEBUG)>>)[source]
Connect to the “simple” pypi url to get the list of all packages matching all or part of the given name
- Parameters:
- Return type:
Examples
get_pypi_package_list(‘pymodaq_plugins’) will retrieve the names of all packages having ‘pymodaq_plugins’ in their name
- pymodaq_utils.packages.get_pypi_pymodaq(package_name='pymodaq-plugins', pymodaq_version=None, pymodaq_latest=None)[source]
Get the latest plugin info compatible with a given version of pymodaq
- Parameters:
package_name (
str)pymodaq_version (
Version)
- Return type:
dict containing metadataofthe latest compatible plugin