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

python-pkginfo

Parse Python package metadata from sdist and bdists and etc

19 releases

new 0.6.5 Dec 8, 2024
0.6.4 Nov 30, 2024
0.6.3 Sep 19, 2024
0.6.2 May 21, 2024
0.4.0 Jun 8, 2021

#80 in Science

Download history 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 17264/week @ 2024-11-12 17512/week @ 2024-11-19 19687/week @ 2024-11-26 16633/week @ 2024-12-03

74,243 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
~331K SLoC