Skip to main content

Search PyPI package names by regex pattern, with caching and optional details.

Project description

pypi_search

  • Current Version: v0.0.2-Beta

Search PyPI package names by regex pattern 🐍📦

Fast, cached regex search over all PyPI packages (~736k+), with optional details (version, maintainer, description).

Screenshot from 2026-02-08 15-44-00.png{width=100}

Features

  • Regex matching (e.g., ^aio.*, flask|django).
  • Access to pypi.org packages via the simple package API
    • 23h cache (~/.cache/pip-search/)
  • Color output to console

Program Options

  • package_name | <regex pattern>
    • first parameter
  • --cache-refresh | -r
    • to refresh cache on demand
  • --desc | -d
    • Optional details for top 10 matches.
  • --full-desc | -f
    • for full description
  • --count-only | -c
    • just test counts of matches

Installation

# Standard pip install
pip install pypi_search_cached

# uv environment install
uv pip install pypi_search_cached
  • Installs pypi_search to ~/.local/bin

Usage

pypi_search "pattern"

Details for first 10 pypi_search "flask|django" --desc pypi_search "pattern" --count-only

pypi_search "^aio" -d 

Examples

Input argument is anchored between '^' start of line and '$' end of line. So if there are not regular expression character, it searches for a specific module...

  ./pypi_search aiohttp 
Using cached package list (age < 23h)
Found 1 matching packages:

aiohttp

Total matches: 1

Search for a module that begins with...

  pypi_search "^aio" | less

Found 2,159 matching packages:

AIO-CodeCheck
AIOAladdinConnect
AIOConductor
AIOPayeerAPI
AIOPools
...
aiozmq-heartbeat
aiozoneinfo
aiozoom
aiozyre

Total matches: 2,159

Search for a string in the middle of a package name:

  ./pypi_search '.*aio.*'  | less
Found 3,094 matching packages:

AIO-CodeCheck
AIOAladdinConnect
AIOConductor
AIOPayeerAPI
AIOPools
...
traio
trakt_aiohttp
transitions-aio
trio-aiohttp
twm-aiokafka
txaio
txaioetcd
types-aioboto3
types-aioboto3-lite
types-aiob[lib](.venv/lib)otocore
...
xmaios-bot
ya-aioclient
yandex-aiobot-py
yclients-aio-client
youtubeaio
youtubeaio-extended
z21aio

Total matches: 3,094

Search for a module that ends with...

  ./pypi_search '.*http$'  | less

Found 413 matching packages:

BasicHttp 
CANedge-HTTP 
CodernityDB-HTTP 
CydraGitHTTP 
Flask-Shell2HTTP 
...
zerohttp 
zhttp 
zhujiaying-boss-mcp-weather-http 
zimran-http 
zipr-http 
zope.app.http 

Total matches: 413

My Dev Environment:

  • Python Env: uv
  • IDE: JetBrains PyCharm
  • AI Agent Env:
    • Aider
    • Aider-Desk
    • Junie

Feedback

Licence

MIT License. Built with Requests + BeautifulSoup.

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

pypi_search_caching-0.0.2b0.tar.gz (326.0 kB view details)

Uploaded Source

Built Distribution

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

pypi_search_caching-0.0.2b0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file pypi_search_caching-0.0.2b0.tar.gz.

File metadata

  • Download URL: pypi_search_caching-0.0.2b0.tar.gz
  • Upload date:
  • Size: 326.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pypi_search_caching-0.0.2b0.tar.gz
Algorithm Hash digest
SHA256 28545a866ef32d715ee029ce743e5f40e2a22309d1b53a782cc6d62e3e5e585f
MD5 685f3a664c22144b900c9fe877b0d28a
BLAKE2b-256 61d79e2f6d86b919b2106e146e8a735c269d61d5f81e8572e3a0e32bb464b3a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypi_search_caching-0.0.2b0.tar.gz:

Publisher: python-publish.yml on dsidlo/pypi_search

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

File details

Details for the file pypi_search_caching-0.0.2b0-py3-none-any.whl.

File metadata

File hashes

Hashes for pypi_search_caching-0.0.2b0-py3-none-any.whl
Algorithm Hash digest
SHA256 4616cd18c2ab819e02b03dd37891f6269d1c43ac53f759c64665d3777e7e2ff5
MD5 5302ec991315a49e1cfd08a7d7655709
BLAKE2b-256 ec5c108bae3981f250df804fc8b8667acf29eb6e6f2eb1582fa32eac8593a56c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypi_search_caching-0.0.2b0-py3-none-any.whl:

Publisher: python-publish.yml on dsidlo/pypi_search

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