Skip to main content

whatsonpypi

PyPI version Python versions CI Coverage License: MIT Code Style: Black Lint: Ruff Typing: mypy

Get package info from PyPI.

Demo

🚀 Why this project exists

I find myself checking the PyPI page very frequently mostly when upgrading dependencies to get the latest versions. I'm inherently lazy and did not want to get my ass off my terminal window.

🧠 How this project works

No real magic here. It uses the requests package to hit the public PyPI REST API, parses the JSON and displays it. Embarrassingly simple.

📐 Requirements

  • Python >= 3.9

📦 Installation

pip install whatsonpypi

OR

pip install whatsonpypi[rich]

... if you want to use the rich package for a nicer output.

🧪 Usage

$ whatsonpypi --help
Usage: whatsonpypi [OPTIONS] PACKAGE

  A CLI tool to get package info from PyPI.

  Example usages:

  $ whatsonpypi django

  OR

  $ wopp django

Options:
  -v, --version          Show the version and exit.
  -m, --more             Flag to enable expanded output
  -d, --docs             Flag to open docs or homepage of project
  -o, --open             Flag to open PyPI page
  -H, --history INTEGER  Show release history. Use positive number for most
                         recent, negative for oldest. E.g. '--history -10' or '
                         --history 10'
  -h, --help             Show this message and exit.

🛠️ Features

  • Find information on a package on PyPI

    Examples:

    $ whatsonpypi django
    NAME
        Django
       ...
    
  • For more information..

    Examples:

    $ whatsonpypi django --more
    ...
    
  • Version specific information..

    Examples:

    $ whatsonpypi django==2.1.4 --more
    ...
    
  • Launch PyPI URL of project in a browser tab

    Examples:

    $ whatsonpypi django --open
    
  • Launch documentation URL of project in a browser tab

    Examples:

    $ whatsonpypi django --docs
    
  • Get release info of the last 5 versions

    Examples:

    $ whatsonpypi django --history 5
    
  • Get release info of the first 5 versions

    Examples:

    $ whatsonpypi django --history -5
    
  • Filter display output using the --fields flag.

    Examples:

    $ whatsonpypi django --fields name,current_version,latest_releases
    

🧾 Changelog

See CHANGELOG.md

🙏 Credits

📄 License

MIT © Visesh Prasad

Metadata

Release files for whatsonpypi 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whatsonpypi 0.4.3
File Size Uploaded
whatsonpypi-0.4.3.tar.gz 291.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for whatsonpypi 0.4.3
File Interpreter ABI Platform
whatsonpypi-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 303.5 kB

Release files / whatsonpypi-0.4.3.tar.gz

Download URL whatsonpypi-0.4.3.tar.gz
Size 291.1 kB
Tags Source
SHA-256 checksum
How to use checksums
01918a6a8b825128b5386ed7b3eca75a0629211c801543712ca08051c9a6af2a
BLAKE2b-256 checksum
How to use checksums
ae8e81b054c0bc05f52e814f27464fb88060c60ed617c5619803532d49738df7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Release files / whatsonpypi-0.4.3-py3-none-any.whl

Download URL whatsonpypi-0.4.3-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e7c83504a2315344ce4b75d43753d58efb337ac3c5a37c9bbd6e4f7d44b544a
BLAKE2b-256 checksum
How to use checksums
1f70561e2cd3e6a52ea05cbfc45ece6baf0ed997af8f591205eeb22e4718e043
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.12

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page