just a simple code sharing tool powered by gist.
Project description
灵感来自于 @教主 的 42qucc: https://bitbucket.org/zuroc/42qu-notepad, http://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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-gist-note-0.2.4.tar.gz.
File metadata
- Download URL: python-gist-note-0.2.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826000f32d6349013c2bdbacab4478ef2780203afcffbe308bebf05a698e712b
|
|
| MD5 |
18916e7b41b057b0cf8e67921b5c4131
|
|
| BLAKE2b-256 |
78a6d5b8a7e0c2e763550730517221c59198d03dae35af75d2eeda70274e8690
|
File details
Details for the file python_gist_note-0.2.4-py2-none-any.whl.
File metadata
- Download URL: python_gist_note-0.2.4-py2-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f9b579cff5ea48a96d5c148bbe41a9ca90f726777b4f411d927bcced87b3956
|
|
| MD5 |
f03682ffe3b1a7ab541d06fec40c920b
|
|
| BLAKE2b-256 |
f62ae5a443a243dceaaab648aa655d58d28e8ff2aa1a0683ea91ad3eeae62b94
|