Skip to content

cdunklau/gistit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GistIt

Create Gists from the command line.

Requires the Requests library. Should work on Python 2.7 and 3.3+.

Features

  • 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).

Usage

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

About

Create Gists from the command line

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages