python-pkginfo

Crates.iopython-pkginfo
lib.rspython-pkginfo
version0.6.3
sourcesrc
created_at2021-06-02 13:42:52.521253
updated_at2024-09-19 11:43:01.441849
descriptionParse Python package metadata from sdist and bdists and etc.
homepage
repositoryhttps://github.com/PyO3/python-pkginfo-rs
max_upload_size
id405302
size332,004
Maintainers (github:pyo3:maintainers)

documentation

README

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.

Commit count: 85

cargo fmt