--- id: prefect-gitlab version: "0.3.5" license: Apache License 2.0 license_treatment: permissive maintenance: active --- # prefect-gitlab — A Prefect collection for working with GitLab repositories. License: permissive · Maintenance: active · Downloads: 150.8K/mo ## 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 above — 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 pip install prefect-gitlab uv add prefect-gitlab poetry add prefect-gitlab ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 150.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags prefect gitlab integration, gitlab workflow automation, prefect repository blocks, gitlab event triggers, ci cd orchestration gitlab, prefect gitlab credentials, workflow automation gitlab, workflow-orchestration, gitlab-integration, ci-cd [View on SkillFed](https://skillfed.io/packages/prefect-gitlab) · [View on PyPI](https://pypi.org/project/prefect-gitlab/)