Parse distribution file names for project information
Project description
packaging-dists
Parse distribution file names for project information. This library is not particularly useful on its own, but can be used to make sense of distribution information from package indexes. For example:
>>> from packaging_dists import InvalidDistribution, parse
>>> from pypi_simple import PyPISimple
>>> client = PyPISimple()
>>> for dist in client.get_project_files("numpy"):
... try:
... print(parse(dist.filename))
... except InvalidDistribution as e:
... print(e)
(skipped)
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='macosx_10_9_x86_64')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='manylinux1_i686')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='manylinux1_x86_64')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='manylinux2010_i686')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='manylinux2010_x86_64')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='manylinux2014_aarch64')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='win32')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='cp38', abi='cp38', platform='win_amd64')
Wheel(project='numpy', version=<Version('1.19.2')>, build='', python='pp36', abi='pypy36_pp73', platform='manylinux2010_x86_64')
Sdist(project='numpy', version=<Version('1.19.2')>)
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
packaging-dists-0.2.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for packaging_dists-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0f88d62c7a0ea7a6e2489ea8b677e98d2b92de7514e9592949951ae7c084d4f |
|
MD5 | a588f5a09d1b79bfacb44488c7ceb8c0 |
|
BLAKE2b-256 | 14433f04d0362744485dd5247add245eb967d858946c9457d1c0a8f9ef14e43a |