Skip to main content

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.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

packaging_dists-0.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file packaging-dists-0.4.tar.gz.

File metadata

  • Download URL: packaging-dists-0.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for packaging-dists-0.4.tar.gz
Algorithm Hash digest
SHA256 ec327ca787d32ecd84bb280ebef381f2581445118e735fc9187c9f17a13012c1
MD5 39e995f587b1516944b9747f38871239
BLAKE2b-256 6260f40df0ff062c0af93cf4b22c38878528f990d193813d7aed242bb7dbe5ae

See more details on using hashes here.

File details

Details for the file packaging_dists-0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for packaging_dists-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ae6ef295698341b214bb7cb02678be601c3c00291440ee32e84481c1a2a15591
MD5 808cbe4f36109d8de7bb738342191d7e
BLAKE2b-256 7648f79b3adcd51a32fba221764cde361ab0bc06a0b686d17038033752b27c11

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page