在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
pgistA Python command-line wrapper with github3.py library to access GitHub Gist. InstallationYou can install with pip: pip install pgist -U Or with easy_install: easy_install -U pgist CommandTo upload the contents of a.py just: pgist a.py Or you can accept stdin as a file like this: pgist - type ctrl+D to end stdin and ctrl+C to abort. Upload multiple files: pgist a b c Use -p to make the gist private: pgist a.py -p Use -d to add a description: pgist -d "Say something" a.py You can update existing gists with -u: pgist b.py c.py -u 2c93e03266634cd6e273 List your public gists: pgist -l And list all gists including private ones: pgist -l -A See pgist --help for more detail. LoginIf you want to associate your gists with your GitHub account, you need to loginwith pgist. It doesn't store your username and password, it just uses them to getan OAuth2 token (with the "gist" permission). pgist --loginGitHub username(default is xxxxx): douglarekGitHub password for douglarek:Done ... After you've done this, you can still upload gists anonymously with -a: pgist a.py -a Thanks
LicenseLicensed under the Apache 2.0 license. Bug-reports, and pull requests are welcome. |
请发表评论