Skip to main content

python-gist-note

灵感来自于 @教主 的 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

OPTIONS:

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

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

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

使用场景举例:

李雷想把自己机器上的 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

注意

  1. 因为是匿名,所以只能在线查看不能编辑,将来有可能增加用户

  2. 生成的 url 可读性比较差,考虑加入短域名

Metadata

Release files for python-gist-note 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-gist-note 0.2.1
File Size Uploaded Provenance Actions
python-gist-note-0.2.1.tar.gz 3.5 kB Without provenance Details for python-gist-note-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-gist-note 0.2.1
File Interpreter ABI Platform Actions
python_gist_note-0.2.1-py2-none-any.whl Python 2 none any Details for python_gist_note-0.2.1-py2-none-any.whl

Total release size: 10.7 kB

Release files / python-gist-note-0.2.1.tar.gz

Download URL python-gist-note-0.2.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
25ad63e2c3fefabc9ec07707a0663328e833aada61a636c828576064fee63d0e
BLAKE2b-256 checksum
How to use checksums
dfa4a73b6fc937b216095440aef02f93d4d89ace2607043e927fca421847fd0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_gist_note-0.2.1-py2-none-any.whl

Download URL python_gist_note-0.2.1-py2-none-any.whl
Size 7.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
949807214a1e5c48cdb446691872e328bfd35533e7da34f8829bf607b786d72c
BLAKE2b-256 checksum
How to use checksums
864d0ca147f85cacb9edd5977f37f41309a0a4c3958fefad93f3b641caad885e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-gist-note 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page