mlrl.common.package_info module

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

Provides utility functions for retrieving information about this Python packages that implement rule learners.

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

Bases: object

Provides information about a Python package that implements a rule learner.

Attributes:

package_name: A string that specifies the package name python_packages: A set that contains a PackageInfo 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[PackageInfo]

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

package_name: str
property package_version: str

The version of the Python package.

python_packages: Set[PackageInfo]
mlrl.common.package_info.get_package_info() PackageInfo

Returns information about this Python package.

Returns:

A PackageInfo that provides information about the Python package