prefect_gitlab.repositories
Integrations with GitLab.
The GitLab class in this collection is a storage block that lets Prefect agents
pull Prefect flow code from GitLab repositories.
The GitLab block is ideally configured via the Prefect UI, but can also be used
in Python as the following examples demonstrate.
Examples:
Classes
GitLabRepository
Interact with files stored in GitLab repositories.
An accessible installation of git is required for this block to function
properly.
Methods:
aget_directory
from_path to the provided local_path;
defaults to cloning the repository reference configured on the Block to the
present working directory. Async version.
Args:
from_path: If provided, interpreted as a subdirectory of the underlying repository that will be copied to the provided local path.local_path: A local path to clone to; defaults to present working directory.
get_directory
from_path to the provided local_path;
defaults to cloning the repository reference configured on the Block to the
present working directory.
Args:
from_path: If provided, interpreted as a subdirectory of the underlying repository that will be copied to the provided local path.local_path: A local path to clone to; defaults to present working directory.