An open API service indexing awesome lists of open source software.

https://github.com/blfpd/requirements

PIP requirements file parser written in Rust.
https://github.com/blfpd/requirements

Last synced: 9 months ago
JSON representation

PIP requirements file parser written in Rust.

Awesome Lists containing this project

README

          

# requirements

![](https://github.com/batisteo/requirements/workflows/Rust/badge.svg)

Fast parser of [Python requirement files](https://pip.readthedocs.io/en/1.1/requirements.html)
both `.txt` or `.in`.

## Usage

Example:

```rust
use requirements;

fn main() {
let content = "Django>=3.0.0";
let reqs = requirements::parse_str(&content).unwrap();

for req in reqs.into_iter() {
println!("{:?}", req);
}
}

```

## License

This project is Free Software and available under the MIT license. See
the `LICENSE` file for more details.