Skip to main content

A cli utility for querying GitHub gists

Project description

Gisty

A simple cli utility for retrieving Gists on GitHub.

Written as part of a technical test.

Using the Github API you should query a user's publicly available github gists. The script should then tell you when a new gist has been published.

Installation

Note. Requires python3

pip3 install gisty

Getting started

List all Gists

gisty firegrass --format list --colour

Find Gists this year

gisty firegrass --since 'last year' --order 'desc'

Watch for new Gists

gisty firegrass --watch --since 'now'

Once you hit GitHub IP address rate limiting (60 requests per hour), you can use a personal access token.

gisty firegrass --auth USERNAME:TOKEN

To debug the script and see the underlying GitHub api requests use -v

gisty firegrass -v

Development

Using Pipenv to manage dependencies and virtualenvs.

# Install locally
python3 setup.py install

# Build and push to test PyPI
python3 setup.py sdist bdist_wheel
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Potential improvements

  • More test coverage (and reports in Travis)
  • Use Travis to matrix tests in all Python3 versions

Project details


Download files

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

Files for gisty, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size gisty-0.1.1.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page