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.
- Host: GitHub
- URL: https://github.com/blfpd/requirements
- Owner: blfpd
- License: mit
- Created: 2020-04-04T19:56:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-13T21:48:49.000Z (over 5 years ago)
- Last Synced: 2025-09-20T09:55:01.119Z (9 months ago)
- Language: Rust
- Homepage: https://docs.rs/requirements
- Size: 41 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# requirements

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.