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
70,363 downloads per month
Used in 4 crates
(2 directly)
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
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