mlrl.common.info module

Author: Michael Rapp (michael.rapp.ml@gmail.com)

Provides utility functions for retrieving information about this Python package.

class mlrl.common.info.PythonPackageInfo(package_name: str, python_packages: ~typing.Set[~mlrl.common.info.PythonPackageInfo] = <factory>, cpp_libraries: ~typing.Set[~mlrl.common.cython.info.CppLibraryInfo] = <factory>)

Bases: object

Provides information about a Python package.

Attributes:

package_name: A string that specifies the package name package_version: A string that specifies the package version python_packages: A set that contains a PythonPackageInfo for each Python package used by this package cpp_libraries: A set that contains a CppLibraryInfo for each C++ library used by this package

cpp_libraries: Set[CppLibraryInfo]
property dependencies: Set[PythonPackageInfo]

A set that contains a PythonPackageInfo for each dependency of this package.

package_name: str
property package_version: str

The version of the Python package.

python_packages: Set[PythonPackageInfo]
mlrl.common.info.get_package_info() PythonPackageInfo

Returns information about this Python package.

Returns:

A PythonPackageInfo that provides information about the Python package