Code Monkey home page Code Monkey logo

pipgh's Introduction

pipgh

pipgh allows searching for Python packages on Github and installing them directly. It further allows to specify a reference to a branch, a release or a commit's hash value.

pipgh works with common HTTP GET requests. This simplicity makes it a great solution to deploy software with dependencies available on Github, without the need to install a Version Control System client on the users' system.

Pure Python code (2 and 3 compatible). No dependencies.

Search

Search for individual packages:

$ pipgh search requests
Searching github.com for 'requests language:python'...
kennethreitz/requests Python HTTP Requests for... (★:17198 f:2998 u:2016 Jan 22)
requests/requests-oauthlib OAuthlib support for P... (★:517 f:146 u:2016 Jan 12)
kennethreitz/grequests Requests + Gevent = <3 (★:1246 f:153 u:2015 Nov 21)
requests/requests-ntlm NTLM authentication support ... (★:65 f:32 u:2015 Oct 31)
bulkan/robotframework-requests Robot Framework keyw... (★:81 f:58 u:2016 Jan 13)
(...)
[2226 repositories were found, showing the first 30]
$ pipgh search docopt
(...)

Searching like this:

$ pipgh search http async server

is equivalent to search

http async server language:python

with your web-browser on github.com/search.

Install

Install a package from the latest commit on the master branch:

$ pipgh install docopt/docopt
Fetching files from 'docopt/docopt'...
Installing python package 'docopt-0.6.1'...

Install a specific version of the code using a reference (e.g. release, commit's hash value or branch):

$ pipgh install kennethreitz/requests v2.9.1
$ pipgh install mitsuhiko/flask 23cf923c7c2e4a3808e6c71b6faa34d1749d4cb6
$ pipgh install tornadoweb/tornado stable

Or install a list of packages from a file:

$ cat requirements.txt
docopt/docopt 0.6.2
kennethreitz/requests
$ pipgh install -r requirements.txt
(...)
Show

Show a repository metadata and its README file with this:

$ pipgh show docopt/docopt
(...)
$ pipgh show docopt/docopt | less   # also works

Usage

pipgh [--auth] search <query>...
pipgh [--auth] show <full_name>
pipgh install ( (<full_name> [<ref>]) | (-r <requirements.txt>) )
pipgh [-h | --help]

Commands

  • search - Search Python packages in github.
  • install - Download and install a package.
  • show - Shows information from github about a repository.

Options

  • -h | --help - Shows this help message.
  • --auth - Activates the use of HTTP basic authentication. Use this if the rate limit threshold is achieved.

pipgh's People

Contributors

ffunenga avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.