Skip to main content

Command line tool for searching across GitLab projects

Project description

gitlab-search

Command line tool for searching for text terms across several GitLab(TM) projects

release python pipeline status license pre-commit Code style: black chat

Contents

Description

This tool let's you perform a full text search across your personal projects, your group projects and/or public projects of any user on GitLab (TM).

GITLAB is a trademark of GitLab Inc. in the United States and other countries and regions

Note: This is not an official tool from GitLab and the author has no affiliation with GitLab Inc.

Features

  • Search for occurrences of a text term across all files of all projects known to a user
  • Matches are given with exact location and link to file on GitLab
  • Search personal projects and group projects
  • Search public projects of other users
  • Limit search to personal projects or groups
  • Exclude specific projects from search
  • Limit search to files with specific extensions
  • Search for several terms in the same run
  • Works with custom gitlab domain

Installation

You can install this tool from PyPI with the following command:

pip install gitlab-search

Usage

To use this tool you need a private API token, which you can create on the GitHub profile page.

To run a search over all your projects for the term kalkoken you can enter:

github-search kalkoken

Note: The tool will search all personal projects and known group projects by default. You can change the scope of what projects are searches through command line arguments.

When you start the command for the first time it will run setup, e.g. to configure your token. The configuration will be saved and re-used the next time you use the command. If you want to update your configuration your can setup again any time list this:

github-search --setup

Hint: gitlab-search will store the configuration in the home directory of the current user in the file .gitlabsearch.

You can get a full overview of the command syntax with:

github-search -h

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab_search-0.1.0a4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

gitlab_search-0.1.0a4-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file gitlab_search-0.1.0a4.tar.gz.

File metadata

  • Download URL: gitlab_search-0.1.0a4.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for gitlab_search-0.1.0a4.tar.gz
Algorithm Hash digest
SHA256 d9aaa7a9b88f9f96da2755230f17cf1ac0e62a394cca254182afcc38e5ffcadf
MD5 f2b2aa9eca931949e53570f7fb6be114
BLAKE2b-256 4c32e743a379a40d439b02ca759d2f9858942af29d089bb63fb542f04af8d39c

See more details on using hashes here.

File details

Details for the file gitlab_search-0.1.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for gitlab_search-0.1.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 b624bfc3f328a4dd4182b5e42456c9258d8a8d11b1c0b5f0fc3557e1fd4b24f5
MD5 f60533d3b217b383a5b337d564e7fcdd
BLAKE2b-256 d0e60a956a2fa4c6a08a8b68564b921102fbcfbff035a02b48cac3f04e5a4dd9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page