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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: packaging-dists-0.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for packaging-dists-0.3.tar.gz
Algorithm Hash digest
SHA256 e8150f4c12dec8f2bc96210e156b5f0561a06d08c15e6dec2ac69a70d8fcb49d
MD5 02b2b73b133ee0eb66dc93d2e6af4dbd
BLAKE2b-256 185819c02723eca4774c13b0ab9f08ea45014fd6b84e3780c7ddb72ec2a4ead0

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: packaging_dists-0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0

File hashes

Hashes for packaging_dists-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a6c104052dd944f21b1ed45f9b152e03eb4c871a05146f9649426e283bea5657
MD5 2806388e5b46acf7c2d1a5fd8cd69c74
BLAKE2b-256 acfe44393fc60f2617a4bb3a8e78c78b22e86133e514d05e54e01450829f8b29

See more details on using hashes here.

Provenance

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