Create Gists from the command line.
Requires the Requests library. Should work on Python 2.7 and 3.3+.
- Anonymous and authenticated Gist creation.
- Public/Private Gists.
- Easy token creation, scoped only for Gist (not the rest of GitHub)
- Filenames with path context (optional).
General usage:
usage: gistit.py [-h] [--token TOKEN] {create,token} ...
positional arguments:
{create,token} Available commands
create Create new gist
token Create a new gist access token and store it in a file
optional arguments:
-h, --help show this help message and exit
--token TOKEN, -t TOKEN
Path to token file
Create command:
usage: gistit.py create [-h] [--description DESCRIPTION] [--public]
[--anonymous] [--no-contextual]
file [file ...]
positional arguments:
file File to upload
optional arguments:
-h, --help show this help message and exit
--description DESCRIPTION, -d DESCRIPTION
Gist description
--public, -p Create as public gist
--anonymous, -a Create as anonymous
--no-contextual, -C Use normal filenames, without path context
Token command:
usage: gistit.py token [-h] username positional arguments: username Github username or email optional arguments: -h, --help show this help message and exit