3 releases (breaking)

0.3.0 Apr 11, 2020
0.2.0 Apr 10, 2020
0.1.0 Apr 4, 2020

#2438 in Parser implementations

Download history 198/week @ 2023-12-04 187/week @ 2023-12-11 177/week @ 2023-12-18 105/week @ 2023-12-25 174/week @ 2024-01-01 194/week @ 2024-01-08 176/week @ 2024-01-15 154/week @ 2024-01-22 223/week @ 2024-01-29 240/week @ 2024-02-05 128/week @ 2024-02-12 172/week @ 2024-02-19 228/week @ 2024-02-26 193/week @ 2024-03-04 186/week @ 2024-03-11 80/week @ 2024-03-18

695 downloads per month

MIT license

12KB
247 lines

requirements

Fast parser of Python requirement files both .txt or .in.

Usage

Example:

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.

Dependencies

~6–8.5MB
~146K SLoC