Skip to main content

Python utility to parse package filenames to get the name and version of the package.

Project description

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

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'

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

package_parser-1.0.2.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

package_parser-1.0.2-py3-none-any.whl (17.8 kB view hashes)

Uploaded Python 3

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