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.

Source Distribution

gisty-0.1.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page