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

$ pep 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
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.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: 730

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

options:
  -h, --help         show this help message and exit
  -u URL, --url URL  Base URL for PEPs (default: https://peps.python.org)
  -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

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.3.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pepotron-1.3.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pepotron-1.3.0.tar.gz
Algorithm Hash digest
SHA256 b0bb1f8c5472252db0e26b918eb26fdaa8c906acba1c354dee0b30522768c3d2
MD5 fbca3811d9bc238561d63bf9ecf5f96c
BLAKE2b-256 4ecf7892cd4c888dc91132d987c3476420962c77ec8a4cf0b94ee3917b6a0667

See more details on using hashes here.

Provenance

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

Publisher: deploy.yml on hugovk/pepotron

Attestations:

File details

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

File metadata

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

File hashes

Hashes for pepotron-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3122217b79581565bfb5c98483dfa4dd51020c673139c18ba17cb364b1b7fc68
MD5 ce34f863435c36e76e7884cdfb40bafd
BLAKE2b-256 dfd728e46d66a601b6eae8c3c12c97362f6b9564e533953ef97962ae63f70d67

See more details on using hashes here.

Provenance

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

Publisher: deploy.yml on hugovk/pepotron

Attestations:

Supported by

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