Coder Social home page Coder Social logo

pombredanne / packaging-dists Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uranusjr/packaging-dists

0.0 1.0 0.0 19 KB

Parse distribution file names for project information

Home Page: https://pypi.org/project/packaging-dists

License: ISC License

Python 100.00%

packaging-dists's Introduction

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')>)

packaging-dists's People

Contributors

pombredanne avatar uranusjr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.