Search git from the command line
Project description
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 |
TODO
- Add date based options for search criteria
- Refactor the code to be more pythonic
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
Built Distribution
Hashes for gitsearch_cli-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92367802befaf90961a98391fb6132879cdec45c31a150a95e71977c44f44038 |
|
MD5 | 187e596ccae2d5e69b542bf6e2eb8782 |
|
BLAKE2b-256 | 3aba908b15cab5e1d5a78bd92777fd0fc5131cc3ed1c5e7972473cb83bb3a865 |