semvec/pypi-packages huggingface dataset:
package-parser 1.0.2
Python utility to parse package filenames to get the name and version of the package.
License: MIT
Keywords: python package name version

==============
package_parser
==============
Python utility for parsing packages names and versions from wheel filename, sdist filenames, or setup.py files


Example
=======

Manually import py files or .pyd files

.. code-block:: python

    from package_parser import parse, normalize_name

    attrs = parse('class-property-1.0.0-py3-none-any.whl')
    assert normalize_name(attrs['name']) == 'class_property'
    assert attrs['version'] == '1.0.0'