CLI to open PEPs in your browser
Project description
pepotron
CLI to open PEPs in your browser.
Installation
From PyPI
python3 -m pip install --upgrade pepotron
With pipx
pipx install pepotron
From source
git clone https://github.com/hugovk/pepotron
cd pepotron
python3 -m pip install .
Usage
Open a PEP
Run pep or pepotron, they do the same thing.
$ pep 8
https://peps.python.org/pep-0008/
$ # Or:
$ pepotron 8
https://peps.python.org/pep-0008/
$ # Or:
$ uvx pepotron 8
https://peps.python.org/pep-0008/
Open release schedule PEP for a Python version
$ pep 3.11
https://peps.python.org/pep-0664/
Open a PEP by searching for words in the title
$ pep dead batteries
Score Result
90 PEP 594: Removing dead batteries from the standard library
61 PEP 767: Annotating Read-Only Attributes
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
https://peps.python.org/pep-0594/
Open a PEP topic
$ pep governance
https://peps.python.org/topic/governance/
$ pep packaging
https://peps.python.org/topic/packaging/
$ pep release
https://peps.python.org/topic/release/
$ pep typing
https://peps.python.org/topic/typing/
$ pep topics
https://peps.python.org/topic/
Open a build preview of a python/peps PR
$ pep 594 --pr 2440
https://pep-previews--2440.org.readthedocs.build/pep-0594/
Open the PEPs website
$ pep
https://peps.python.org
$ pep --pr 2440
https://pep-previews--2440.org.readthedocs.build
Find the next available PEP number
Check published PEPs and open PRs to find the next available PEP number.
$ pep next
Next available PEP: 769
Open a BPO issue in the browser
Issues from bugs.python.org have been migrated to GitHub issues and have new numbers. This command will open the redirect page to take you to the new issue.
$ bpo 46208
https://bugs.python.org/issue?@action=redirect&bpo=46208
This redirects to https://github.com/python/cpython/issues/90366
Help
$ 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, or 'next' to
find next available PEP number
options:
-h, --help show this help message and exit
-u, --url URL Base URL for PEPs (default: https://peps.python.org)
-p, --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
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 pepotron-1.5.0.tar.gz.
File metadata
- Download URL: pepotron-1.5.0.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c183f304dd7a4a020d7e2207ca94029adaf151d1cef200dd7719eb9ee1d9da24
|
|
| MD5 |
9a33b1107b06924f4375842bc15d160f
|
|
| BLAKE2b-256 |
8186e8048bf37a87a5871849c31bf603d21bbdc6c3f9083993a117fb456e9ccc
|
Provenance
The following attestation bundles were made for pepotron-1.5.0.tar.gz:
Publisher:
deploy.yml on hugovk/pepotron
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pepotron-1.5.0.tar.gz -
Subject digest:
c183f304dd7a4a020d7e2207ca94029adaf151d1cef200dd7719eb9ee1d9da24 - Sigstore transparency entry: 208607567
- Sigstore integration time:
-
Permalink:
hugovk/pepotron@322455f1ba7310874fb40fd7a6d798b02a5f135e -
Branch / Tag:
refs/tags/1.5.0 - Owner: https://github.com/hugovk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@322455f1ba7310874fb40fd7a6d798b02a5f135e -
Trigger Event:
release
-
Statement type:
File details
Details for the file pepotron-1.5.0-py3-none-any.whl.
File metadata
- Download URL: pepotron-1.5.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80d686255c9e3a2aec5d7e3a9cdb4290fc82782a8d56a6e6d3ea1a1e8903d8c7
|
|
| MD5 |
a133ba6e8c147f2a09bc2ee25bfa1d3e
|
|
| BLAKE2b-256 |
de758ad92a9f583e5e1fd04e1d2786f03cfd48f306ed5a95039f5327061ee120
|
Provenance
The following attestation bundles were made for pepotron-1.5.0-py3-none-any.whl:
Publisher:
deploy.yml on hugovk/pepotron
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pepotron-1.5.0-py3-none-any.whl -
Subject digest:
80d686255c9e3a2aec5d7e3a9cdb4290fc82782a8d56a6e6d3ea1a1e8903d8c7 - Sigstore transparency entry: 208607569
- Sigstore integration time:
-
Permalink:
hugovk/pepotron@322455f1ba7310874fb40fd7a6d798b02a5f135e -
Branch / Tag:
refs/tags/1.5.0 - Owner: https://github.com/hugovk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
deploy.yml@322455f1ba7310874fb40fd7a6d798b02a5f135e -
Trigger Event:
release
-
Statement type: