Skip to main content

Parses Pip requirement files

Project description

Requirements Parser

https://secure.travis-ci.org/davidfischer/requirements-parser.png?branch=master

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', 'rb') as f:
...     pprint.pprint(requirements.parse(f)))
[{'extras': None, 'name': 'requests', 'operator': '>=', 'version': '0.14.1'},
 {'extras': None, 'name': 'requests-oath2', 'operator': None, 'version': None},
 {'extras': None, 'name': 'Django', 'operator': '==', 'version': '1.4.2'}]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

requirements-parser-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file requirements-parser-0.0.3.tar.gz.

File metadata

File hashes

Hashes for requirements-parser-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4c68e2ff52ed96e570f95318c5d77f449d9742ec328d1f25d33e3092d97a4de3
MD5 25738d557e9f704fd9edb0067b26bfd8
BLAKE2b-256 ca620c0c432e43d3b4b7d65cc39cd9308ee0c5e46c0d5249a3c542760922f391

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page