Skip to main content

just a simple code sharing tool powered by gist.

Project description

灵感来自于 @教主 的 42qucc:

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


sudo pip install python-gist-note



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

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

3. 完整参数:
gn -f -m 'this is a test file' -u -p pwd <


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

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

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

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


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

$ gn -f -m 'this is a test python file' <

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

$ gn 38821b0f84959c525379edb258f0243fc >

Project details

Download files

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

Files for python-gist-note, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size python_gist_note-0.2.4-py2-none-any.whl (7.1 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size python-gist-note-0.2.4.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page