skillfed

prefect-gitlab

A Prefect collection for working with GitLab repositories.

prefect-gitlab v0.3.5 150.8K downloads/30d#10,953 on PyPI23,623
Permissive license Apache License 2.0 Active released

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-gitlab

uv

uv add prefect-gitlab

poetry

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 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

Intended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries

Tags

prefect gitlab integrationgitlab workflow automationprefect repository blocksgitlab event triggersci cd orchestration gitlabprefect gitlab credentialsworkflow automation gitlab
workflow-orchestrationgitlab-integrationci-cd

More Libraries packages