Skip to content

A Pip requirements file parser. This project is actively seeking maintainers.

License

Notifications You must be signed in to change notification settings

dargueta-work/requirements-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements Parser

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

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'])

About

A Pip requirements file parser. This project is actively seeking maintainers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%