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 details)
Built Distribution
File details
Details for the file package_parser-1.0.2.tar.gz
.
File metadata
- Download URL: package_parser-1.0.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61827426794166050dfd3ffef8ee42d23282f45999c270a5b3afb5ae4da141c |
|
MD5 | 7a1c214ac4ef1ccc36542e6a2cd601fe |
|
BLAKE2b-256 | 8b3c47ffc99c12605d64050dc2a1372b1f2e2eefd680653eeab019a674d3d216 |
File details
Details for the file package_parser-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: package_parser-1.0.2-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b91330d72a991e968d95f4fb87c14075e51234087388c72825b6ce1f408a55b3 |
|
MD5 | 6b3fb15ab672c64caca7fa6228311232 |
|
BLAKE2b-256 | fb9e6773d7cb55ef3c7d8f0784128621f80ebb5b115259269599ec0e9fdcb1b2 |