What's this?
Some tools to get data from pypi and kick it around, for fun and profit.
Minus the profit.
You can do stuff in python, but also have a CLI for most of the stuff.
$ python pipoke/pkg_vs_words.py is-not-a-pkg-name "numpy,exists,but,this_crazy_pkg,does,not"
{'this_crazy_pkg', 'but', 'exists', 'does'}
So 'numpy' and 'not' are already registered with pypi. But hey, the good news is 'but' and 'does' aren't. Inspired to write some code bearing that name?
Cool! How do I install it?
pip install pipoke
Enough said.
Play
from pipoke.pkg_vs_words import all_words, pkg_names
all_words # set of all English words (according to wordnet)
pkg_names # set of all PyPi package names. All at the point the list was slurped
You can have your own fun with that. Here are a few things to get you started.
All pkg_names that are valid English words:
from pipoke.pkg_vs_words import all_words, pkg_names
set(all_words).intersection(pkg_names)
All valid English words that are no "taken" by the pypi namespace:
from pipoke.pkg_vs_words import all_words, pkg_names
set(all_words).difference(pkg_names)
All english words, package names, and intersection of both... that end with py:
from pipoke.pkg_vs_words import words_and_pkg_names_satisfying_condition
words_and_pkg_names_satisfying_condition(lambda w: w.endswith('py'), print_counts=True)
All english words, package names, and intersection of both... that contain py or pi:
from pipoke.pkg_vs_words import words_and_pkg_names_satisfying_condition
import pipoke.word_conditions as wc
words_and_pkg_names_satisfying_condition(wc.contains_py_or_pi, print_counts=True)
Want to search with a regular expression? Got you covered. The above search is actually equivalent to:
from pipoke.pkg_vs_words import words_and_pkg_names_satisfying_regex
words_and_pkg_names_satisfying_regex('.*(py|pi).*', print_counts=True)
Get stuff
The repository comes with a data folder that contains a pickle containing a set of words (from wordnet) and a set of pypi package names (well {pkg_name: pkg_url_stub, } to be exact).
But you probably want to update that pypi list from time to time. And you can do so with
from pipoke.pypi_store import refresh_saved_pkg_name_stub
refresh_saved_pkg_name_stub()
Get dict of information for a pkg_name:
from pipoke.pypi_store import info_of_pkg_from_web
pkg_name = 'pipoke'
info_of_pkg_from_web(pkg_name)
And by the way
You have a CLI for many of these things too.
Metadata
Release files for pipoke 0.0.24
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 |
|---|---|---|---|---|
| pipoke-0.0.24.tar.gz | 4.6 MB | Without provenance | Details for pipoke-0.0.24.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pipoke-0.0.24-py3-none-any.whl | Python 3 | none | any | Details for pipoke-0.0.24-py3-none-any.whl |
Total release size: 9.1 MB
Release files / pipoke-0.0.24.tar.gz
| Download URL | pipoke-0.0.24.tar.gz |
|---|---|
| Size | 4.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75839cc5b1f57805419b454a97e59b9b809bad4af1c1511eb7440920366fe3ed
|
|
BLAKE2b-256 checksum How to use checksums |
959bc6bc70f92d0df207a7966c4d50dc514cc238f07b6220304e63a520756c01
|
| 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 / pipoke-0.0.24-py3-none-any.whl
| Download URL | pipoke-0.0.24-py3-none-any.whl |
|---|---|
| Size | 4.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d305400571e8f6f2386ff651a9d5592b68cf706c756c147c83b2a846be727a1
|
|
BLAKE2b-256 checksum How to use checksums |
6662223f929a248ff711df197fc7a40a14e165c92e4901826df46259530dd427
|
| 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 pipoke 0.0.24
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.