Skip to main content

CLI to open PEPs in your browser

Project description

pepotron

PyPI version Supported Python versions PyPI downloads Test Codecov Licence Code style: Black

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


Download files

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

Source Distribution

pepotron-1.7.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pepotron-1.7.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file pepotron-1.7.0.tar.gz.

File metadata

  • Download URL: pepotron-1.7.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pepotron-1.7.0.tar.gz
Algorithm Hash digest
SHA256 800993c849c4259d2b8ec238f073a904c23648defe205a355baff1ab1f429370
MD5 2e0a13442dc1032a6b1596a2dbaf6f4a
BLAKE2b-256 801d9f121da3a25ef23b6dc942c8ad7eddca607ad3c3e3ae3dc546a48b502394

See more details on using hashes here.

Provenance

The following attestation bundles were made for pepotron-1.7.0.tar.gz:

Publisher: deploy.yml on hugovk/pepotron

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pepotron-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: pepotron-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pepotron-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f2b0a1878da0b15d09cdddd381ab2e953897ac0b4be44565fd9fec42d4e1728
MD5 d064beee5c847d1ad7bec8150d3694e1
BLAKE2b-256 6bf533494c13dd45ac65e9542327380185eca1580c9bfc6a3dd8aed6bdef69cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pepotron-1.7.0-py3-none-any.whl:

Publisher: deploy.yml on hugovk/pepotron

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page