#python-packages #package-metadata #python #metadata #parser #pkginfo

python-pkginfo

Parse Python package metadata from sdist and bdists and etc

17 releases

0.6.3 Sep 19, 2024
0.6.2 May 21, 2024
0.6.0 Aug 13, 2023
0.5.6 Jul 2, 2023
0.4.0 Jun 8, 2021

#108 in Science

Download history 16407/week @ 2024-07-30 15415/week @ 2024-08-06 16028/week @ 2024-08-13 17355/week @ 2024-08-20 16840/week @ 2024-08-27 19546/week @ 2024-09-03 17884/week @ 2024-09-10 15277/week @ 2024-09-17 19066/week @ 2024-09-24 14562/week @ 2024-10-01 19019/week @ 2024-10-08 18802/week @ 2024-10-15 14739/week @ 2024-10-22 14542/week @ 2024-10-29 15354/week @ 2024-11-05 17183/week @ 2024-11-12

64,738 downloads per month
Used in 4 crates (2 directly)

MIT license

215KB
439 lines

Contains (Python package, 99KB) py-1.11.0-py2.py3-none-any.whl, (Zip file, 28KB) tests/fixtures/build-0.4.0-py3.9.egg, (Python package, 15KB) build-0.4.0-py2.py3-none-any.whl

python-pkginfo-rs

GitHub Actions Crates.io docs.rs

Parse Python package metadata from sdist and bdists and etc. A Rust port of the pkginfo Python library.

Installation

Add it to your Cargo.toml:

[dependencies]
python-pkginfo = "0.6"

then you are good to go. If you are using Rust 2015 you have to add extern crate python_pkginfo to your crate root as well.

Example

use python_pkginfo::Distribution;

fn main() {
    let dist = Distribution::new("path/to/package.whl").unwrap();
    println!("{:#?}", dist.metadata());
}

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Dependencies

~9–19MB
~332K SLoC