We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60f05f1 commit f25229eCopy full SHA for f25229e
README.md
@@ -17,6 +17,17 @@ python-pkginfo = "0.1"
17
18
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.
19
20
+## Example
21
+
22
+```rust
23
+use python_pkginfo::Distribution;
24
25
+fn main() {
26
+ let dist = Distribution::new("path/to/package.whl").unwrap();
27
+ println!("{:#?}", dist.metadata());
28
+}
29
+```
30
31
## License
32
33
This work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.
0 commit comments