Requirements Parser
This is a small Python module for parsing Pip requirement files.
Examples
Requirements parser can parse a file-like object or a text string.
>>> import requirements
>>> import pprint
>>> with open('requirements.txt', 'r') as f:
... for req in requirements.parse(f):
... pprint.pprint(req)
...
{'name': 'requirements',
'uri': 'https://github.com/davidfischer/requirements-parser.git',
'vcs': 'git'}
{'extras': [], 'name': 'Django', 'specs': [('>=', '1.5'), ('<', '1.6')]}
{'extras': [], 'name': 'numpy', 'specs': []}
{'extras': ['pdf'], 'name': 'DocParser', 'specs': []}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file requirements-parser-0.0.4.tar.gz.
File metadata
- Download URL: requirements-parser-0.0.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96778c8e9cb0595f61aaf7091b85d110324c31ceff7fb772dfd4575224f60352
|
|
| MD5 |
87860b313cc2935e1f2f0ae1a7ae1e34
|
|
| BLAKE2b-256 |
f4881820e37234cf35e758069f06f75d70db381579d0ac43ce5a28a6a95a6e96
|