Install with pip.
pip install pygist
Commands:
pygist login pygist create <file1> <file2> <fileN> 'description' #create a gist with one or more files pygist create paste 'description' #create a gist from clipboard data (OS X only) pygist delete <gist_id> #delete a gist by gist_id