frame_cli.info module

Management of .frame-cli directories.

frame_cli.info.add_local_model_info(name: str, url: str, model_path: str) None[source]

Add a local hybrid model info to global dictionary and local model dictionary.

frame_cli.info.get_closest_info_path() str | None[source]

Return the path to the .frame-cli directory at the root of the current repository, if it exists.

frame_cli.info.get_github_token(use_new_token: bool = False) str[source]

Return the GitHub token from the global info dictionary.

frame_cli.info.get_global_info() dict[source]

Return the global (home) info dictionary.

frame_cli.info.get_home_info_path() str[source]

Return the path to the .frame-cli directory in the user’s home directory.

frame_cli.info.get_local_model_info() dict[source]

Return the local hybrid model info dictionary.

frame_cli.info.get_local_models_info() dict[source]

Return the local hybrid models info dictionary.

frame_cli.info.set_global_info(info: dict) None[source]

Set the global (home) info dictionary.

frame_cli.info.set_local_model_info(info: dict, model_path: str | None = None) None[source]

Set the local hybrid model info dictionary.