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 details)

Uploaded Source

File details

Details for the file gisty-0.1.1.tar.gz.

File metadata

  • Download URL: gisty-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for gisty-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b0ad101e9d708b9618558b63b4f475a96c7cec6f091a80a1f49777d137266efb
MD5 2127d6fa5aa597535a5e4112549eee03
BLAKE2b-256 7859dee6aa00b75ed71c6c828307a7d3a160e69741ca2b2dddb8a573a2e48877

See more details on using hashes here.

Supported by

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