Crates.io | python-pkginfo |
lib.rs | python-pkginfo |
version | |
source | src |
created_at | 2021-06-02 13:42:52.521253+00 |
updated_at | 2024-12-08 10:16:22.898777+00 |
description | Parse Python package metadata from sdist and bdists and etc. |
homepage | |
repository | https://github.com/PyO3/python-pkginfo-rs |
max_upload_size | |
id | 405302 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Parse Python package metadata from sdist and bdists and etc. A Rust port of the pkginfo Python library.
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.
use python_pkginfo::Distribution;
fn main() {
let dist = Distribution::new("path/to/package.whl").unwrap();
println!("{:#?}", dist.metadata());
}
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.