frame_cli.push module

Module for frame push command.

exception frame_cli.push.MissingModelURLError[source]

Bases: Exception

Exception raised when the model URL is missing in the metadata file.

exception frame_cli.push.ModelAlreadyTrackedError[source]

Bases: Exception

Exception raised when the model is already tracked by the Frame repository.

frame_cli.push.add_model_to_local_frame_repo(local_repo: Repo)[source]
frame_cli.push.create_frame_fork(upstream_repo: Repository, github_user: AuthenticatedUser) Repository[source]
frame_cli.push.create_pull_request(github_client: Github, github_user: AuthenticatedUser)[source]
frame_cli.push.generate_branch_name() str[source]
frame_cli.push.get_local_frame_repo(github_client: Github, github_user: AuthenticatedUser)[source]
frame_cli.push.get_model_name() str[source]
frame_cli.push.get_model_url() str[source]
frame_cli.push.push(use_new_token: bool = False)[source]

Submit a pull request to the Frame project with new/updated metadata.

frame_cli.push.push_to_frame_fork(local_repo: Repo)[source]
frame_cli.push.validate_integration() bool[source]

Validate metadata file and absence of conflicts with other Frame models.