yp
A mapping view to PyPI projects: look up any project's info by name with p['numpy'], list all project names, and narrow the collection to a user's projects or your own set. For more PyPI interaction tools, see also pipoke.
pip install yp
Example usage
Get a mapping of all of pypi projects. The keys are the project names (there are lots!), and the values are each project's info:
>>> from yp import Pypi
>>> p = Pypi()
>>> len(p) # doctest: +SKIP
405120
>>> 'numpy' in p and 'dol' in p
True
>>> 'no_way_this_is_a_package' in p
False
>>> info = p['numpy'] # doctest: +SKIP
>>> list(info) # doctest: +SKIP
['info', 'last_serial', 'releases', 'urls', 'vulnerabilities']
The project info is obtained live, making requests to the https://pypi.python.org/pypi/{pkg_name}/json API, but the list of all project names is taken from a local file. You should update that file regularly (but not TOO regularly!) to be in sync with pypi.org:
>>> Pypi.refresh_cached_package_names() # doctest: +SKIP
If you don't want all projects of PyPI to be the collection you're working with, you can specify what user they should belong to, or explicitly give Pypi a collection of project names:
>>> p = Pypi(user='thorwhalen1') # doctest: +SKIP
>>> len(p) # doctest: +SKIP
131
>>> p = Pypi(proj_names={'numpy', 'pandas', 'dol'})
>>> len(p)
3
You can do a lot more by simply using the tools of dol to change the mapping you want to work with in all kinds of ways!
Extras
yp ships a cached list of every PyPI project name (yp/data/pkg_list.tsv.gz), so name lookups are instant and offline. The cache is loaded lazily -- the first lookup pays for it, import yp does not.
yp.refresh_saved_pkg_name_stub() fetches the current list and saves it to your app folder, which then takes precedence over the copy shipped with the package. (It writes there rather than into the installed package, which is read-only in many installs.) Pass save_to= to write elsewhere.
I also refresh the shipped copy from time to time and push the results. You can find the list (as a text file with one name per line) here: https://raw.githubusercontent.com/thorwhalen/yp/refs/heads/master/yp/data/pkg_list.txt
Skills
yp ships AI agent skills (SKILL.md files) that teach an agent how to drive its tools. They live in yp/data/skills/ (so they install with the package) and are mirrored into .claude/skills/ for Claude Code.
| Skill | What it helps you do |
|---|---|
yp-name-availability |
Find an available PyPI name for a new package: brainstorm → fast cached pre-filter → authoritative live check → present the free options. |
yp-name-cache |
Operate the cached PyPI name index: refresh it, check names fast/offline, understand freshness & normalization caveats. |
yp-package-info |
Fetch live PyPI info: full project JSON, a tidy digest, latest version(s), last-upload time, a user's projects, bulk download. |
yp-dependencies |
Inspect an installed package's dependency tree (direct/transitive, required vs installed, version conflicts). |
Install one into an agent host with gh skill:
gh skill install thorwhalen/yp yp-name-availability
Metadata
Release files for yp 0.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yp-0.0.17.tar.gz | 7.9 MB | Without provenance | Details for yp-0.0.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yp-0.0.17-py3-none-any.whl | Python 3 | none | any | Details for yp-0.0.17-py3-none-any.whl |
Total release size: 15.8 MB
Release files / yp-0.0.17.tar.gz
| Download URL | yp-0.0.17.tar.gz |
|---|---|
| Size | 7.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93ee5eb24347a183404023f872ed97230c900defcd25f5c78dfd3b0c8517c94a
|
|
BLAKE2b-256 checksum How to use checksums |
f5458241be9cce08eb0e7a0a744b50a10e22f067dbcd1257a5f35b6737449a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / yp-0.0.17-py3-none-any.whl
| Download URL | yp-0.0.17-py3-none-any.whl |
|---|---|
| Size | 7.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b02457a8d8916dc4cbb081c35a2e682aba509353dfd050502e5d36b9021437c
|
|
BLAKE2b-256 checksum How to use checksums |
d4479f3de39a66d99c06b5e877ffc5ce1b91a5040efd056762ac6910e007c4a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for yp 0.0.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.