pic_scanner.cli.subcommands.core package
Submodules
pic_scanner.cli.subcommands.core.version_info module
- pic_scanner.cli.subcommands.core.version_info.check_pypi_package_version(package_name, include_prereleases=False)
Check if a package is available on PyPi and retrieve its latest version.
- Parameters:
package_name (str) – The name of the package to check.
include_prereleases (bool) – Whether to include pre-releases in the version check.
- Returns:
The latest version of the package if it exists, otherwise None.
- Return type:
str
- pic_scanner.cli.subcommands.core.version_info.get_package_info(package_name)
Get version and license information for a given package.
- Parameters:
package_name (str) – The name of the package to check.
- Returns:
A dictionary with version and license information.
- Return type:
dict
- pic_scanner.cli.subcommands.core.version_info.handle_version_info(args)
- pic_scanner.cli.subcommands.core.version_info.handle_version_update(args)