Parses Pip requirement files
Project description
Requirements Parser
This is a small Python module for parsing Pip requirement files.
Installation
pip install requirements-parser
Examples
Requirements parser can parse a file-like object or a text string.
>>> import requirements >>> reqfile = """ ... Django>=1.5,<1.6 ... DocParser[PDF]==1.0.0 ... """ >>> for req in requirements.parse(reqfile): ... print(req.name, req.specs, req.extras) ... ('Django', [('>=', '1.5'), ('<', '1.6')], []) ('DocParser', [('==', '1.0.0')], ['pdf'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for requirements-parser-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bee729ec83549d9a70973e2aa3c362a890f6c758087566dda157265050ebc024 |
|
MD5 | f62efad453216baaa1b5faa0fac6a397 |
|
BLAKE2b-256 | 64c4b2e4fc467fc27b3c10e5300fa4dd3508642c0f0d91ce8e1c77eade901410 |