Giter Site home page Giter Site logo

gh's Introduction

gh

Build Status PyPI version

Low-level GitHub API request interface. With caching.

It's similiar to the official hub api, but:

  • only GET commands supported
  • automatic caching by ETag and Cache-Control will speed up repeat queries and won't burn your rate limit
  • based on Python

Synopsis

gh repos/dvershinin/lastversion/license # outputs JSON with license of a given repo

Install

pip install --user gh-api

gh's People

Contributors

dvershinin avatar jayvdb avatar

Watchers

 avatar  avatar

Forkers

jayvdb

gh's Issues

netrc

Could this library support storage of tokens in .netrc ? It seems to be possible.
I did a bit of research at fridex/githubcap#9

Potential name clash with PyPI gh

https://pypi.org/project/gh/ is https://github.com/danielwhatmuff/gh and it only installs a bin script gh.

Despite the repo containing a subdir gh, the setup.py is looking for a gh.py which is missing, so nothing is installed into site-packages, which means there is not yet a real conflict between the two packages there.

There is a conflict with the bin script gh, but there are lots of Python packages which use that bin script name (gitsome, gh-commander and (not released) ghutil are ones I have found), and even more in other language runtimes.

I suggest creating an extra entrypoint gh-api which is more unique and used in documentation, and also adding a __main__ so that python3 -m gh will work even when there is something wrong with the bin scripts (e.g. pkg_resources blows up).

And/Or, subsume the functionality of PyPI package gh (which is quite small) and approach the author about a gentlemans agreement that they wont grow their library into a huge success which could mean users want gh and gh-api.

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.