# python-gitlab/python-gitlab

A python wrapper for the GitLab API.

Repository: https://github.com/python-gitlab/python-gitlab
Canonical: https://ross.abutalabs.com/products/python-gitlab
Homepage: https://python-gitlab.readthedocs.io
Language: Python
License: NOASSERTION
License Family: other
Topics: python, gitlab, api, hacktoberfest, gitlab-api, gitlab-ci, gitlab-cli
Last push: 2026-08-26T16:14:25+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 95, longevity 100
- inputs: {"age_days": 4955, "days_push": 7, "days_rel": 37, "gap_med": 20, "n_releases_24m": 28}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2472, forks 672 (observed 2026-08-28T04:06:54.746609+00:00)

## What it is
python-gitlab is a Python package providing access to the GitLab v4 REST API and GraphQL API, including a CLI tool wrapping REST endpoints. It offers Pythonic resource management, pagination, retries, rate-limit handling, and flexible configuration.

## Use cases
- manage gitlab projects and issues from python scripts
- automate gitlab ci/cd pipelines via api
- query gitlab graphql api asynchronously
- bulk-create or update gitlab users and groups
- script gitlab merge request workflows
- interact with gitlab api from the command line

## When to choose
- you need programmatic access to GitLab resources from Python
- you want a maintained client with pagination, retries, and auth handling built in
- you need both REST and GraphQL access to GitLab
- you want a ready-made CLI for GitLab API operations

## When to avoid
- you use GitHub or another forge instead of GitLab
- you need a GUI for GitLab administration
- you only need simple git operations rather than API access

## Facets
- artifact type: library
- maturity: stable
- function: http-client, cli, developer-tools
- domain: developer-tools, apis
- platform: python, cli, cross-platform
- tags: gitlab, gitlab-api, rest-client, graphql-client, api-wrapper, automation, devops

## Member repositories
- python-gitlab/python-gitlab (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:54.746609+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:28:33.112567+00:00, confidence not recorded.
  - readme: https://github.com/python-gitlab/python-gitlab (fetched 2026-08-28T04:06:54.746609+00:00, sha 36748aa2acc3)
  - registry_pypi: https://pypi.org/pypi/python-gitlab/json (fetched 2026-08-29T10:11:23.405134+00:00, sha 62587763461b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
