$npx skillfedfor your agent

python-gitlab

The python wrapper for the GitLab REST and GraphQL APIs.

Worth itPyPI WWW/HTTPReleased Jul 202621.0M downloads / moLGPL-3.0-or-laterPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — python_gitlab-8.5.0-py3-none-any.whl
v8.5.0 · released 2026-07-28 · Python >=3.10.0 · 2 runtime deps: requests, requests-toolbelt

Yes. The package is actively maintained, has low install friction, no known vulnerabilities, and is in the top 5000 PyPI packages by download volume. The copyleft license is standard for GitLab tooling. Install it if you need to programmatically interact with GitLab APIs from Python.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later and a valid GitLab instance URL with authentication token.
  • Low friction install with only two runtime dependencies (requests and requests-toolbelt).
  • Active maintenance with a recent release 17 days ago and consistent commit activity.

License · maintenance · safety

LGPL-3.0-or-later (copyleft) — Licensed under LGPL-3.0-or-later (copyleft). Any derivative work or distribution must preserve the same license terms and make source code available.

last release 2026-07-28 (17 days) · last repo commit 2026-08-14 · 2,471 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 21,035,573 downloads/mo, #1,018 on PyPI

Verify before relying

pip install python-gitlab

import gitlab

gl = gitlab.Gitlab('https://gitlab.example.com', private_token='your-token')
project = gl.projects.get('project-id')
print(project.name)
  • Whether async GraphQL support requires additional dependencies beyond requests and requests-toolbelt.
  • Performance characteristics when handling large paginated responses or high-volume API calls.
  • Specific GitLab server version compatibility beyond the general API v4 support.
Same gist for agents: .md · .json

What it is and what it does

python-gitlab is a Python client library that wraps GitLab's v4 REST API and provides both synchronous and asynchronous GraphQL clients. It lets you write Pythonic code to manage GitLab resources—projects, issues, merge requests, users, and more—without hand-crafting HTTP requests. The package includes a command-line tool (gitlab) for direct API access and handles common concerns like authentication, retries, rate limiting, pagination, and URL encoding automatically.

The library depends on requests and requests-toolbelt for HTTP communication and supports Python 3.10 and later. It's designed for system administrators and developers who need to automate GitLab operations, integrate GitLab into larger workflows, or script repetitive tasks. You can pass arbitrary parameters to the API, access endpoints as soon as they're available on GitLab, and use persistent sessions for proxy and certificate handling.

Use it for

  • Automate GitLab project and user management tasks in CI/CD pipelines or administrative scripts.
  • Query and modify issues, merge requests, and other resources programmatically from Python applications.
  • Build custom integrations between GitLab and external systems using REST or GraphQL APIs.
  • Write CLI scripts to manage GitLab instances without manual web UI interaction.
  • Implement rate-limit-aware bulk operations on GitLab resources with automatic retry logic.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has low install friction, no known vulnerabilities, and is in the top 5000 PyPI packages by download volume. The copyleft license is standard for GitLab tooling. Install it if you need to programmatically interact with GitLab APIs from Python.

Install

python-gitlab on PyPI

Before you install

Low friction install with only two runtime dependencies (requests and requests-toolbelt). Active maintenance with a recent release 17 days ago and consistent commit activity.

Requires Python 3.10 or later and a valid GitLab instance URL with authentication token.

License in practice

Licensed under LGPL-3.0-or-later (copyleft). Any derivative work or distribution must preserve the same license terms and make source code available.

Quickstart

pip install python-gitlab

import gitlab

gl = gitlab.Gitlab('https://gitlab.example.com', private_token='your-token')
project = gl.projects.get('project-id')
print(project.name)

Verify before relying

  • Whether async GraphQL support requires additional dependencies beyond requests and requests-toolbelt.
  • Performance characteristics when handling large paginated responses or high-volume API calls.
  • Specific GitLab server version compatibility beyond the general API v4 support.

Package facts

LicenseLGPL-3.0-or-later copyleft
Python supportSupports the current Python release >=3.10.0
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
requestsrequests-toolbelt
MaintenanceActively maintained 17 days since the last release
Last repo commit
First released
Downloads21,035,573 / month, #1,018 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: System AdministratorsLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Natural Language :: EnglishOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: python_gitlab-8.5.0-py3-none-any.whl

Tags

Capabilities
gitlab api client pythongitlab rest api wrappergitlab graphql clientgitlab cli toolmanage gitlab resources pythongitlab automationgitlab api access
Topics
gitlab-integrationapi-clientdevops-automation
PyPI keywords
apiclientgitlabpythonpython-gitlabwrapper

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “gitlab api client python”

  • python-gitlabPython wrapper for GitLab's REST and GraphQL APIs, with a CLI tool…
  • pulumi-gitlabPulumi provider for GitLab that lets you define and manage GitLab…
  • prefect-gitlabIntegrates Prefect workflow orchestration with GitLab repositories,…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also linear-api · pulumi-gitlab · graphqlclient · python-graphql-client · graphql-server · gql · pylint-gitlab · simple-rest-client · sgqlc · oauthlib