https://github.com/pyo3/python-pkginfo-rs
Parse Python package metadata from sdist and bdists and etc.
https://github.com/pyo3/python-pkginfo-rs
Last synced: 8 months ago
JSON representation
Parse Python package metadata from sdist and bdists and etc.
- Host: GitHub
- URL: https://github.com/pyo3/python-pkginfo-rs
- Owner: PyO3
- License: mit
- Created: 2021-06-01T14:00:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T17:30:40.000Z (10 months ago)
- Last Synced: 2025-05-06T19:46:04.830Z (8 months ago)
- Language: Rust
- Homepage:
- Size: 295 KB
- Stars: 6
- Watchers: 10
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# python-pkginfo-rs
[](https://github.com/PyO3/python-pkginfo-rs/actions?query=workflow%3ACI)
[](https://crates.io/crates/python-pkginfo)
[](https://docs.rs/python-pkginfo/)
Parse Python package metadata from sdist and bdists and etc.
A Rust port of the [pkginfo](https://pypi.org/project/pkginfo/) Python library.
## Installation
Add it to your `Cargo.toml`:
```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
```rust
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](./LICENSE) file.