#python #metadata #pkginfo

python-pkginfo

Parse Python package metadata from sdist and bdists and etc

7 releases (4 breaking)

0.5.0 Oct 11, 2021
0.4.0 Jun 8, 2021
0.3.2 Jun 3, 2021
0.2.0 Jun 3, 2021
0.1.0 Jun 2, 2021

#11 in #metadata

Download history 860/week @ 2021-08-11 383/week @ 2021-08-18 476/week @ 2021-08-25 889/week @ 2021-09-01 383/week @ 2021-09-08 1034/week @ 2021-09-15 694/week @ 2021-09-22 373/week @ 2021-09-29 738/week @ 2021-10-06 1026/week @ 2021-10-13 370/week @ 2021-10-20 520/week @ 2021-10-27 676/week @ 2021-11-03 795/week @ 2021-11-10 987/week @ 2021-11-17 1311/week @ 2021-11-24

3,954 downloads per month
Used in maturin

MIT license

110KB
424 lines

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.5"

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

~7MB
~186K SLoC