Skip to main content

PyPI client

CLI tool for searching Python packages by name. Finds matching packages on PyPI, enriches results with GitHub stars and download counts, and ranks them by relevance.

Install

pip install pypi-client

Or with uv:

uv tool install pypi-client

Usage

Usage: pypi-client [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  auth-github  Log into GitHub
  search       Search python package by name

Search

Usage: pypi-client search [OPTIONS] NAME_SEARCH

  Search python package by name

Options:
  --limit INTEGER RANGE           Max number of items to return
  --no-cache                      Clear cache before run
  --log-level [ERROR|WARN|INFO|DEBUG]
                                  Logging level
  --json                          Return in json format
  --threads INTEGER               Number of threads to use
  --help                          Show this message and exit.

Example output:

$ pypi-client search kafka
Found 155 packages:
name                                 downloads  summary                                                version      home_page                                                stars    releases  last_release_date
---------------------------------  -----------  -----------------------------------------------------  -----------  -----------------------------------------------------  -------  ----------  -------------------
kafka-python                           6863094  Pure Python client for Apache Kafka                    2.0.2        https://github.com/dpkp/kafka-python                      4084          34  2020-09-30
confluent-kafka                        3341286  Confluent's Python client for Apache Kafka             1.5.0        https://github.com/confluentinc/confluent-kafka-py...     2017          20  2020-08-07
...

GitHub Authentication

Authenticate with GitHub to increase the API rate limit (60 → 5000 requests/hour):

pypi-client auth-github

Development

Requires Python 3.13+ and uv.

uv sync --dev
uv run python -m pytest

Release files for pypi-client 0.2.7

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

Source distribution (sdist)

Source distribution for pypi-client 0.2.7
File Size Uploaded
pypi_client-0.2.7.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypi-client 0.2.7
File Interpreter ABI Platform
pypi_client-0.2.7-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / pypi_client-0.2.7.tar.gz

Download URL pypi_client-0.2.7.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a3160196582ca1335f49bb19e690a981819d524b9ebbc2a40c2118e9c2578c2b
BLAKE2b-256 checksum
How to use checksums
4902035b7763774d3ca960cc17d1f7061944761e3b26cf3468e5f914b8d20f09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pypi_client-0.2.7-py3-none-any.whl

Download URL pypi_client-0.2.7-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1658a5c30e870b4332ee867fad5f21203e13575fb5cdc4bfaeba1c80b38cea10
BLAKE2b-256 checksum
How to use checksums
70b72c67a9cb2c232743de6a95b387e2c24cf9ed23be4e63984761d15717f487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.7 This release

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.0

2 release files

0.1.10

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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