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

python-pkginfo

Parse Python package metadata from sdist and bdists and etc

18 releases

new 0.6.4 Nov 30, 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

#83 in Science

Download history 15938/week @ 2024-08-12 17797/week @ 2024-08-19 17238/week @ 2024-08-26 18047/week @ 2024-09-02 18985/week @ 2024-09-09 14722/week @ 2024-09-16 18841/week @ 2024-09-23 14760/week @ 2024-09-30 19436/week @ 2024-10-07 18898/week @ 2024-10-14 14934/week @ 2024-10-21 14896/week @ 2024-10-28 14523/week @ 2024-11-04 17552/week @ 2024-11-11 17134/week @ 2024-11-18 19551/week @ 2024-11-25

70,363 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