Skip to content

Instantly share code, notes, and snippets.

@jfischer
jfischer / cmd_boilerplate.py
Created February 28, 2017 21:12
Boilerplate for Python 3 command line scripts
#!/usr/bin/env python3
"""
DESCRIBE SCRIPT HERE
"""
import sys
import argparse
def main(argv=sys.argv[1:]):
@jfischer
jfischer / export_github_issues.py
Last active March 2, 2016 18:21 — forked from unbracketed/export_repo_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
#!/usr/bin/env python
"""
Exports Issues from a specified repository to a CSV and/or JSON file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. If a public repository,
no user/password needs to be provided. Supports Github API v3.
Orginally based on a script by Brian Luft at https://gist.github.com/unbracketed/3380407
This requires installing the 'requests' package (https://pypi.python.org/pypi/requests/).