Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Search Github from the command line, the quick and dirty way

Project Description


Quick github search from the command line


pip install githsearch

Usage as a command line tool

options :
    -h or --help : display instructions
    -r or --repo [args] : search for args in github repos
    -u or --user [args] : search for args in github users
    -l or --limit : know your rate limit
example :
    githsearch -r python tetris

sample output :
    -- Tetris Clone in Python (PyGame)
    -- Tetris clone in Python + PyGame
    -- Quick and dirty Tetris clone written to learn Pygame.
    -- A Tetris clone written in Python with pygame

(Bonus : lines alternate in a purple color which is cute)

Using GithSearch programmatically

You can search for repos or users. First instantiate the main class, and to search for a repo call get_repo and pass the terms you want to search as arguments :

>>> from githsearch import GithSearch
>>> g=GithSearch()
>>> g.get_repo('python tetris clone pygame')
'Tetris Clone in Python (PyGame)'),
('', 'Tetris clone in Python + PyGame'),
'Quick and dirty Tetris clone written to learn Pygame.'),
'A Tetris clone written in Python with pygame'),
'Tetris Clone written in Python 3.2 using Pygame 1.9.2'),
'A Tetris clone, using python and pygame'), ...]

The search outputs the most relevant results. To search for a user is the same but call get_user instead

>>> g.get_user('test')
[('test', ''),
('prinnotamago', ''),
('diannt', ''),
('73153', ''),
('ssweetin', ''),
('deekoder', ''),
('songkang666', ''),
('ArdentZeal', ''),
('gitmobiletest', ''), ...]

But be aware that githsearch uses the free quotas from github search API so there is a rate limit. You can consult it by calling :

>>> g.get_limit
{'remaining': 10, 'reset': 1453497872, 'limit': 10}

As long as you don’t hammer down the API you should be okay.

Changes :

Feb 2016 : added Command line tool, refactoring, changed readme from markdown to restructuredtext so that it looks better on the Pypi.

Release History

This version
History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(6.2 kB) Copy SHA256 Hash SHA256
3.4 Egg Feb 21, 2016
(6.2 kB) Copy SHA256 Hash SHA256
py3 Wheel Feb 21, 2016
(4.7 kB) Copy SHA256 Hash SHA256
Source Feb 21, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting