#python #metadata #pkginfo

python-pkginfo

Parse Python package metadata from sdist and bdists and etc

12 releases

0.5.5 Oct 25, 2022
0.5.4 Apr 1, 2022
0.5.3 Mar 24, 2022
0.5.0 Oct 11, 2021
0.4.0 Jun 8, 2021

#419 in Development tools

Download history 1901/week @ 2022-08-17 1986/week @ 2022-08-24 2112/week @ 2022-08-31 2270/week @ 2022-09-07 2240/week @ 2022-09-14 2683/week @ 2022-09-21 2227/week @ 2022-09-28 2911/week @ 2022-10-05 2129/week @ 2022-10-12 2031/week @ 2022-10-19 3430/week @ 2022-10-26 2786/week @ 2022-11-02 2029/week @ 2022-11-09 2762/week @ 2022-11-16 2163/week @ 2022-11-23 2347/week @ 2022-11-30

9,735 downloads per month
Used in maturin

MIT license

200KB
405 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

~6–12MB
~264K SLoC