CLI打开浏览器中的PEP
项目描述
pepotron
CLI打开浏览器中的PEP。
安装
从PyPI
python3 -m pip install --upgrade pepotron
使用 pipx
pipx install pepotron
从源码
git clone https://github.com/hugovk/pepotron
cd pepotron
python3 -m pip install .
使用方法
打开一个PEP
$ pep 8
https://peps.pythonlang.cn/pep-0008/
打开Python版本的开发时间表PEP
$ pep 3.11
https://peps.pythonlang.cn/pep-0664/
通过搜索标题中的单词来打开一个PEP
$ pep dead batteries
Score Result
90 PEP 594: Removing dead batteries from the standard library
58 PEP 415: Implement context suppression with exception attributes
55 PEP 476: Enabling certificate verification by default for stdlib http clients
55 PEP 500: A protocol for delegating datetime methods to their tzinfo implementations
55 PEP 696: Type defaults for TypeVarLikes
https://peps.pythonlang.cn/pep-0594/
打开一个PEP主题
$ pep governance
https://peps.pythonlang.cn/topic/governance/
$ pep packaging
https://peps.pythonlang.cn/topic/packaging/
$ pep release
https://peps.pythonlang.cn/topic/release/
$ pep typing
https://peps.pythonlang.cn/topic/typing/
$ pep topics
https://peps.pythonlang.cn/topic/
打开一个python/peps PR的构建预览
$ pep 594 --pr 2440
https://pep-previews--2440.org.readthedocs.build/pep-0594/
打开PEP网站
$ pep
https://peps.pythonlang.cn
$ pep --pr 2440
https://pep-previews--2440.org.readthedocs.build
找到下一个可用的PEP编号
检查已发布的PEP和 open PRs 来找到下一个可用的PEP编号。
$ pep next
Next available PEP: 730
在浏览器中打开BPO问题
来自 bugs.python.org 的问题已迁移到 GitHub issues 并有新的编号。此命令将打开重定向页面,带您转到新问题。
$ bpo 46208
https://bugs.python.org/issue?@action=redirect&bpo=46208
这重定向到 https://github.com/python/cpython/issues/90366
帮助
$ pep --help
usage: pep [-h] [-u URL] [-p PR] [--clear-cache] [-n] [-v] [-V] [search ...]
pepotron: CLI to open PEPs in your browser
positional arguments:
search PEP number, or Python version for its schedule, or words from title
options:
-h, --help show this help message and exit
-u URL, --url URL Base URL for PEPs (default: https://peps.pythonlang.cn)
-p PR, --pr PR Open preview for python/peps PR
--clear-cache Clear cache before running
-n, --dry-run Don't open in browser
-v, --verbose Verbose logging
-V, --version show program's version number and exit
$ bpo --help
usage: bpo [-h] [-n] [-v] [-V] bpo
Open this BPO in the browser
positional arguments:
bpo BPO number
options:
-h, --help show this help message and exit
-n, --dry-run Don't open in browser
-v, --verbose Verbose logging
-V, --version show program's version number and exit
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪一个,请了解更多关于安装包的信息。
源分布
pepotron-1.2.0.tar.gz (13.7 kB 查看散列)
构建分布
pepotron-1.2.0-py3-none-any.whl (8.7 kB 查看散列)
关闭
pepotron-1.2.0.tar.gz 的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | 1a8131ec528254bb4f28da5716060506f1e0e16041e8ec552edfa58f5eebecb4 |
|
MD5 | 3be5051b4f2194ff51b0c0953211b838 |
|
BLAKE2b-256 | ccd4f08ed61194d4857cb745d9083a3ca412f94b3dc87240f6f2312f3ec747f0 |
关闭
pepotron-1.2.0-py3-none-any.whl 的散列
算法 | 散列摘要 | |
---|---|---|
SHA256 | de94092cec0daf95e3b9478cb8127d70356540c4c2b670428318cdd1c5934c2f |
|
MD5 | cdcf5b7d62cdd08a5620c4b5e3afda07 |
|
BLAKE2b-256 | b08084d3cb43037597546bc286d36f359efe2208086c298427a017f085a405e3 |