• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

pgist: A Python command-line wrapper with github3.py library to access GitHub gi ...

原作者: [db:作者] 来自: Gitee 收藏 邀请

pgist

A Python command-line wrapper with github3.py library to access GitHub Gist.

Installation

You can install with pip:

pip install pgist -U

Or with easy_install:

easy_install -U pgist

Command

To 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.

Login

If 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

License

Licensed under the Apache 2.0 license. Bug-reports, and pull requests are welcome.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap