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
55	PEP 288: Generators Attributes and Exceptions
55	PEP 363: Syntax For Dynamic Attribute Access
55	PEP 476: Enabling certificate verification by default for stdlib http clients
52	PEP 349: Allow str() to return unicode strings

https://peps.python.org/pep-0594/

Open a PEP topic

$ pep governance
https://peps.python.org/topic/governance/

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

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

Uploaded Source

Built Distribution

pepotron-0.8.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pepotron-0.8.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for pepotron-0.8.0.tar.gz
Algorithm Hash digest
SHA256 307afa7a89994fb67947fb43257f6aa9b3a7364d7944d604c41792dfe6a190ff
MD5 1671736da78a06b8de55bc0e4671a023
BLAKE2b-256 352df265711e430bdab0981e80c5f1434a5f52f15f4afafb29ace147be199042

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pepotron-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for pepotron-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85551bfe7452123ee9dc5e5af234f28d1d5d33ead30966b0f20951a2e5c6ecbe
MD5 2b1cb416e539361923451d0681fd251c
BLAKE2b-256 7058436d464dd6fae9d49491a3b35e9a5e874b3d09c29c48e11070f72a24eeb7

See more details on using hashes here.

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