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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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