minitrino.core.library module#

Handles installation and management of Minitrino libraries.

class minitrino.core.library.LibraryManager(ctx: MinitrinoContext)[source][source]#

Bases: object

Handles installation and management of Minitrino libraries.

install(version: str = '') None[source][source]#

Install or update the Minitrino library.

list_releases() list[str][source][source]#

List all available releases from GitHub.

validate(version: str) None[source][source]#

Validate the version string format and existence.

download_and_extract(version: str) None[source][source]#

Download and extract the library tarball.

auto_install_or_update() None[source][source]#

Automatically install or update Minitrino libraries to match the CLI version.

This method checks if the Minitrino library is installed and if its version matches the CLI version. If not installed, it will automatically install the library. If versions don’t match, it will prompt the user to update.