prometa.git.gitlab package
Subpackages
- prometa.git.gitlab.badges package
- Subpackages
- prometa.git.gitlab.badges.python package
- Submodules
- prometa.git.gitlab.badges.python.black module
- prometa.git.gitlab.badges.python.hatch module
- prometa.git.gitlab.badges.python.isort module
- prometa.git.gitlab.badges.python.pylint module
- prometa.git.gitlab.badges.python.pypi module
- prometa.git.gitlab.badges.python.pypi_downloads module
- prometa.git.gitlab.badges.python.python module
- Module contents
- prometa.git.gitlab.badges.python package
- Submodules
- prometa.git.gitlab.badges.badge_manager module
- prometa.git.gitlab.badges.common module
- prometa.git.gitlab.badges.latest_release module
- prometa.git.gitlab.badges.license module
- prometa.git.gitlab.badges.pipeline_status module
- prometa.git.gitlab.badges.test_coverage module
- Module contents
- Subpackages
- prometa.git.gitlab.ci package
- prometa.git.gitlab.hooks package
Submodules
prometa.git.gitlab.api module
Wrapper around python-gitlab functionality.
- class prometa.git.gitlab.api.GitLabAPI(host)[source]
Bases:
ExitStack
,GitLabBadgesMixin
,GitLabHooksMixin
Wrapper around GitLab API via python-gitlab.
- property gitlab[source]
The python-gitlab GitLab instance. It is only be accessible within this class’s context.
- prometa.git.gitlab.api.get_access_level(value)[source]
Get the access level from a user-supplied value.
- Parameters:
value – A case-insensitive string corresponding to an access level constant in AccessLevel or an integer access level. If the value is None or unrecognized, the maintainer access level is returned.
- Returns:
The integer access level.
prometa.git.gitlab.host module
Functionality for GitLab hosts.
- class prometa.git.gitlab.host.GitLabHost(project)[source]
Bases:
GitHost
Functionality for GitLab hosts.
- property is_used[source]
Check if the configuration indicates that this project uses this host.
- Parameters:
project – A Project instance.
- Returns:
True if the project is configured to use this host, else False.
- property main_branches[source]
The main branches to which to restrict some configurations such as CI jobs via the “only” parameter.
Module contents
Package stub.