requirements

Crates.iorequirements
lib.rsrequirements
version0.3.0
sourcesrc
created_at2020-04-04 20:07:45.733846
updated_at2020-04-11 18:30:45.670158
descriptionPython PIP requirements.txt parser
homepage
repositoryhttps://github.com/batisteo/requirements
max_upload_size
id226384
size28,780
Baptiste Darthenay (batisteo)

documentation

README

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.

Commit count: 22

cargo fmt