prefect-gitlab
A Prefect collection for working with GitLab repositories.
What it is and what it does
prefect-gitlab is a Prefect collection that bridges workflow orchestration with GitLab. It allows you to build Prefect flows that interact with GitLab repositories, pull repository data, and respond to GitLab events. The package wraps GitLab API interactions through python-gitlab and adds resilience via tenacity, making it straightforward to integrate GitLab-based CI/CD pipelines or data workflows into Prefect's orchestration layer.
Typically, you would use this to trigger Prefect workflows from GitLab events, clone and process repositories within flows, or manage GitLab resources (issues, merge requests, pipelines) as part of a larger orchestrated process. It is maintained as part of the official Prefect integrations ecosystem and supports modern Python versions.
Use it for:
- Trigger Prefect workflows automatically when code is pushed or merged in GitLab repositories
- Clone and process GitLab repositories within Prefect flows for CI/CD or data extraction tasks
- Manage GitLab resources (issues, merge requests) programmatically as part of orchestrated workflows
- Authenticate Prefect tasks to access private GitLab repositories using stored credentials
- Monitor GitLab pipeline status and integrate results into broader Prefect orchestration logic
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Prefect workflow orchestration with GitLab repositories, enabling you to trigger and manage workflows based on GitLab events and access GitLab resources from Prefect tasks.
Yes, if you use both Prefect and GitLab. The package is actively maintained, has low install friction, carries a permissive license, and fills a clear gap in connecting GitLab events and resources to Prefect workflows. No known vulnerabilities. Install it as part of your Prefect integration stack when GitLab is part of your infrastructure.
Install
prefect-gitlab on PyPI
pip
pip install prefect-gitlabuv
uv add prefect-gitlabpoetry
poetry add prefect-gitlabInstalling prefect-gitlab
Before you install
Low install friction with three straightforward runtime dependencies. Actively maintained with a recent release; the parent Prefect project has strong community engagement.
License in practice
Apache License 2.0 is permissive, allowing commercial use, modification, and distribution with minimal restrictions—suitable for most production environments.
Quickstart
pip install prefect-gitlab
from prefect_gitlab import GitLabRepository
repo = GitLabRepository(
url="https://gitlab.com/my-group/my-project",
credentials=...
)
Requires Python 3.10 or later; GitLab API credentials must be provided separately.
Verify before relying
- Whether the package supports both GitLab.com and self-hosted GitLab instances
- What specific GitLab events can trigger Prefect workflows
- Whether authentication supports personal access tokens, OAuth, or other credential types
Package facts
| License | Apache License 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — prefect, python-gitlab, tenacity |
| Maintenance | actively maintained — 63 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 150,782/month — #10,953 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prefect_gitlab-0.3.5-py3-none-any.whl
Keywords: prefect
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
prefect-githubProvides Prefect workflow tasks and blocks for…
permissive · top 5,000 on PyPI
prefect-redisIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-sqlalchemyIntegrates SQLAlchemy with Prefect workflows,…
permissive · top 5,000 on PyPI
prefect-emailProvides Prefect workflow integration for…
permissive · top 15,000 on PyPI
prefect-dockerProvides Docker task execution and container…
permissive · top 5,000 on PyPI
prefect-snowflakePrefect integration that provides tasks and…
permissive · top 15,000 on PyPI
prefect-clientA lightweight client library for interacting…
permissive · top 15,000 on PyPI
prefect-shellProvides Prefect workflow tasks for executing…
permissive · top 15,000 on PyPI
prefect-slackProvides prebuilt Prefect tasks and blocks to…
permissive · top 15,000 on PyPI
prefect-awsProvides pre-built blocks, tasks, and workers…
permissive · top 5,000 on PyPI