GitLab Dependency Checker
A command-line utility to check if Python packages are used in GitLab repositories or groups. It helps you track package usage across your projects.
Installation
The easiest way to install is with uv:
% uv tool install gitlab-depcheck
Now it's available globally. You can check that the installation was successful:
% gitlab-depcheck --version
gitlab-depcheck, version 0.5.3
Next, create a config file .gitlab_depcheck.toml in your project directory or
~/.gitlab_depcheck.toml in your home directory:
[gitlab]
url = "https://gitlab.com" # or your self-hosted GitLab URL
token = "your-personal-access-token"
[search]
group = "foo" # default group to search in
max_concurrent = 20 # parallel API requests (default: 10)
And just run:
% gitlab-depcheck httpx
🔍 Searching for package: httpx
✓ Found 56 projects to check
Checking projects... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
✓ Found in 4 projects:
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━┓
┃ Project ┃ File ┃ Package ┃ Line ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━┩
│ foo/bar-service │ pyproject.toml │ httpx==0.27.1 │ 31 │
│ foo/tor-service │ pyproject.toml │ httpx[http2]==0.25.2 │ 18 │
│ foo/org-service │ pyproject.toml │ httpx[brotli,zstd]==0.27.1 │ 49 │
│ foo/autotests │ pyproject.toml │ httpx>=0.25.1 │ 24 │
└───────────────────────┴────────────────┴────────────────────────────────────────┴──────┘
Version distribution:
httpx==0.27.1: 2 project(s)
httpx==0.25.2: 1 project(s)
httpx>=0.25.1: 1 project(s)
Output can be transformed into json or csv, for example:
% gitlab-depcheck numpy --output json > foo_numpy.json
% gitlab-depcheck numpy --output csv > foo_numpy.csv
More options
You can narrow the search by specifying a group:
gitlab-depcheck httpx --group mycompany/backend
or filter by project name:
gitlab-depcheck httpx --search foo-service
A full list of options is available via --help:
% gitlab-depcheck --help
Usage: gitlab-depcheck [OPTIONS] PACKAGE
Check Python package dependencies across GitLab projects.
Examples:
# Search for pandas in all accessible projects
gitlab-depcheck pandas
# Search in specific group
gitlab-depcheck httpx --group mycompany/backend
# Search with project name filter
gitlab-depcheck fastapi --search api
# Include archived projects
gitlab-depcheck django --archived
Configuration file (searches in order):
1. .gitlab_depcheck.toml (project directory)
2. ~/.gitlab_depcheck.toml (home directory)
[gitlab]
url = "https://gitlab.com"
token = "your-token-here"
[search]
group = "mycompany"
max_concurrent = 20
Options:
--version Show the version and exit.
--url TEXT GitLab URL (default: https://gitlab.com or from
config)
--token TEXT GitLab personal access token (or use GITLAB_TOKEN
env var or config)
--group TEXT GitLab group path (e.g., mycompany/backend)
--search TEXT Filter projects by name
--archived Include archived projects
--max-concurrent INTEGER Maximum concurrent API requests
--output [table|json|csv] Output format
--help Show this message and exit.
Requirements
- Python 3.10+
- uv package manager
- wget or curl (for uv installation)
License
This project is licensed under the MIT License.
Metadata
Release files for gitlab-depcheck 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gitlab_depcheck-0.5.4.tar.gz | 39.1 kB | With provenance | Details for gitlab_depcheck-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gitlab_depcheck-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for gitlab_depcheck-0.5.4-py3-none-any.whl |
Total release size: 49.1 kB
Release files / gitlab_depcheck-0.5.4.tar.gz
| Download URL | gitlab_depcheck-0.5.4.tar.gz |
|---|---|
| Size | 39.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c25e786115654891631df3aeadca6339df22ae46686e1c23bdeb57c2f9e9526
|
|
BLAKE2b-256 checksum How to use checksums |
d7828b71550b3c1d0e43d6cdeaa21127e1ec971411ec63ffeac1fa5080799258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 11, 2026.
Transparency logRelease files / gitlab_depcheck-0.5.4-py3-none-any.whl
| Download URL | gitlab_depcheck-0.5.4-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32939cae53249912094173a60f6d2cf0505d2b0758485f9f2962645930797ed5
|
|
BLAKE2b-256 checksum How to use checksums |
5c6bfc704601f98c54ebc3d5c7aa0b46747b610cdb2442baac22b977ac2f3916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 11, 2026.
Transparency logSecurity for gitlab-depcheck 0.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for gitlab_depcheck-0.5.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.