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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for package_parser-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b91330d72a991e968d95f4fb87c14075e51234087388c72825b6ce1f408a55b3 |
|
MD5 | 6b3fb15ab672c64caca7fa6228311232 |
|
BLAKE2b-256 | fb9e6773d7cb55ef3c7d8f0784128621f80ebb5b115259269599ec0e9fdcb1b2 |