Skip to main content

Git Search

Simple command line to search github.

Introduction

git-search is a simple command line tool that allows you to search for users and repositories in GitHub.

Installation

To install git search you can use pip with the following command;

pip3 install gitsearch-cli

Usage

By default the search will be scoped to look in repositories, however you can change the scope to look specifically for users.

Searching for Users

git-search --scope users owen rumney

or

git-search --scope users owenrumney

This will yield the following results;

username url
owenrumney https://github.com/owenrumney

Searching for repositories

When searching for repositories you can create a general search by keyword or focus the search by including the language and/or user.

git-search -l scala -u apache spark

This will give the following result;

name owner url
fluo-muchos apache https://github.com/apache/fluo-muchos
predictionio apache https://github.com/apache/predictionio
spark apache https://github.com/apache/spark
spark-website apache https://github.com/apache/spark-website

If you want to only return results where the keyword is in the name, you can use the --nameonly flag

git-search -l scala -u apache spark --nameonly

This will give the following result;

name owner url
spark apache https://github.com/apache/spark
spark-website apache https://github.com/apache/spark-website

Date based criteria

You can search for repositories based on created or updated dates using natural date periods, all of the below examples are acceptable (not limited to this). If you use a date period that isn't acceptable, the search will use the beginning of time (1979-30-10)

git-search -l=scala --updated="last week" # return 30 scala projects updated in the last week

git-search -l=python --created="yesterday" # return 30 scala projects created yesterday

git-search gitsearch -l=python --created "3 days ago"  # return 30 scala projects created yesterday

TODO

  • Add date based options for search criteria
  • Add tests
  • Refactor the code to be more pythonic

Metadata

Release files for gitsearch-cli 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gitsearch-cli 1.0.0
File Size Uploaded
gitsearch-cli-1.0.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gitsearch-cli 1.0.0
File Interpreter ABI Platform
gitsearch_cli-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / gitsearch-cli-1.0.0.tar.gz

Download URL gitsearch-cli-1.0.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
54e47152f9aeb4a3cfb425ed3d0999a06365e20777c95e9fcc70d49b11c12102
BLAKE2b-256 checksum
How to use checksums
06788fda224685b12d94f526d4cdbfa8d5368f6b94188b35786824cc59df2f85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

Release files / gitsearch_cli-1.0.0-py3-none-any.whl

Download URL gitsearch_cli-1.0.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e97b588b9fe347cf3a05c4a1041bea547284dffe84260f210f5d9118db37d97c
BLAKE2b-256 checksum
How to use checksums
16c74e2d37c682e08262820a5e0f4b654b776c06b9207169eeff8ce0c9a2a775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page