Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

just a simple code sharing tool powered by gist.

Project Description

灵感来自于 @教主 的 42qucc: https://bitbucket.org/zuroc/42qu-notepadhttp://p.pe.vc/:help

基于 gist 的代码分享工具,可以很方便和你的小伙伴在命令行分享代码片段。

安装

sudo pip install python-gist-note

使用

USAGE:

1. 获取 gist 内容(写入到 file.py):
gn gist-id-or-url > file.py

2. 新建 gist (根据 file.py 文件的内容):
gn [options] < file.py

3. 完整参数:
gn -f gist-test.py -m 'this is a test file' -u abc@def.com -p pwd < test.py

OPTIONS:

--help, -h: 显示本帮助

-f: 可选,新建 gist 时,新建的 gist 的文件名,默认为:gistfile1.txt

-m: 可选,新建 gist 时,新建的 gist 描述,默认为空

-u, -p: 用户名和密码

使用场景举例:

李雷想把自己机器上的 app.py 分享给韩梅梅,李雷操作如下:

$ gn -f app.py -m 'this is a test python file' < app.py
https://gist.github.com/38821b0f84959c525379edb258f0243f
38821b0f84959c525379edb258f0243f

李雷将获得的 gist id 或 url 发送给韩梅梅,然后韩梅梅操作如下:

$ gn 38821b0f84959c525379edb258f0243fc > app.py
Release History

Release History

This version
History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python_gist_note-0.2.4-py2-none-any.whl (7.1 kB) Copy SHA256 Checksum SHA256 py2 Wheel Feb 9, 2017
python-gist-note-0.2.4.tar.gz (3.3 kB) Copy SHA256 Checksum SHA256 Source Feb 9, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting