#python-packages #python #metadata #pkginfo

python-pkginfo

Parse Python package metadata from sdist and bdists and etc

14 releases

0.6.0 Aug 13, 2023
0.5.6 Jul 2, 2023
0.5.5 Oct 25, 2022
0.5.4 Apr 1, 2022
0.4.0 Jun 8, 2021

#109 in Science

Download history 3962/week @ 2023-12-06 3934/week @ 2023-12-13 3494/week @ 2023-12-20 3965/week @ 2023-12-27 5163/week @ 2024-01-03 5057/week @ 2024-01-10 6508/week @ 2024-01-17 5279/week @ 2024-01-24 6931/week @ 2024-01-31 6201/week @ 2024-02-07 5901/week @ 2024-02-14 10059/week @ 2024-02-21 16107/week @ 2024-02-28 18891/week @ 2024-03-06 9976/week @ 2024-03-13 8961/week @ 2024-03-20

55,792 downloads per month
Used in 2 crates

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–21MB
~341K SLoC