Skip to content

Parse Python package metadata from sdist and bdists and etc.

License

Notifications You must be signed in to change notification settings

matt-phylum/python-pkginfo-rs

This branch is 2 commits ahead of, 32 commits behind PyO3/python-pkginfo-rs:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2d06a77 · Aug 9, 2023

History

63 Commits
Nov 4, 2022
Aug 9, 2023
Aug 9, 2023
Jun 1, 2021
Jul 2, 2023
Jun 8, 2021
Oct 11, 2021

Repository files navigation

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.

About

Parse Python package metadata from sdist and bdists and etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%