All Projects → madpah → requirements-parser

madpah / requirements-parser

Licence: Apache-2.0 license
A Pip requirements file parser.

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to requirements-parser

pipm
Python dependency management workflow using setup.cfg and requirements files without reinventing the wheels
Stars: ✭ 30 (-70.3%)
Mutual labels:  pip
PyTorch-Model-Compare
Compare neural networks by their feature similarity
Stars: ✭ 119 (+17.82%)
Mutual labels:  pip
PastaBean
Python Script to Scrape Pastebin with Regex
Stars: ✭ 0 (-100%)
Mutual labels:  pip
meta-package-manager
🎁 a wrapper around all package managers
Stars: ✭ 277 (+174.26%)
Mutual labels:  pip
resolvelib
Resolve abstract dependencies into concrete ones
Stars: ✭ 92 (-8.91%)
Mutual labels:  pip
serverless-python-requirements
⚡️🐍📦 Serverless plugin to bundle Python packages
Stars: ✭ 971 (+861.39%)
Mutual labels:  pip
Python-Course
🐍 This is the most complete course in Python, completely practical and all the lessons are explained with examples, so that they can be easily understood. 🍫
Stars: ✭ 18 (-82.18%)
Mutual labels:  pip
tox-pip-extensions
Augment tox with different installation methods via progressive enhancement.
Stars: ✭ 38 (-62.38%)
Mutual labels:  pip
index
A PEP 503-compliant Python package index specifically providing wheels built for Alpine Linux
Stars: ✭ 26 (-74.26%)
Mutual labels:  pip
SeleniumDemo
Selenium automation test framework
Stars: ✭ 84 (-16.83%)
Mutual labels:  pip
YoutubeFloatingVideo
Simple Youtube Floating Video Library
Stars: ✭ 37 (-63.37%)
Mutual labels:  pip
pydatagovgr
A Pythonic client for the official https://data.gov.gr API.
Stars: ✭ 38 (-62.38%)
Mutual labels:  pip
android-localization-helper
Make sure that you aren't missing string translations in any language, and keep your localized strings organized.
Stars: ✭ 43 (-57.43%)
Mutual labels:  pip
animec
A module to get data about anime characters, news, info, lyrics and more.
Stars: ✭ 31 (-69.31%)
Mutual labels:  pip
integration-test
ensure core packaging tools work well with each other
Stars: ✭ 15 (-85.15%)
Mutual labels:  pip
pipyuan
pipyuan 内置了国内常用的 pip 源, 你可以快速设置想要的源
Stars: ✭ 30 (-70.3%)
Mutual labels:  pip
poetry-setup
Generate setup.py (setuptools) from pyproject.toml (poetry)
Stars: ✭ 44 (-56.44%)
Mutual labels:  pip
sauron
👀 Reminds the user to take regular breaks and helps prevent eye strain
Stars: ✭ 24 (-76.24%)
Mutual labels:  pip
torsimany
💡✏️️ ⬇️️ JSON to Markdown converter - Generate Markdown from format independent JSON
Stars: ✭ 49 (-51.49%)
Mutual labels:  pip
FlutterInAppPIP
Flutter Code to do InAPP PIP Like Youtube
Stars: ✭ 16 (-84.16%)
Mutual labels:  pip

Requirements Parser

Python CI Documentation Status License

This is a small Python module for parsing Pip requirement files.

The goal is to parse everything in the Pip requirement file format spec.

Installation

pip install requirements-parser

or

poetry add requirements-parser

Examples

Requirements parser can parse a file-like object or a text string.

>>> import requirements
>>> with open('requirements.txt', 'r') as fd:
...     for req in requirements.parse(fd):
...         print(req.name, req.specs)
Django [('>=', '1.11'), ('<', '1.12')]
six [('==', '1.10.0')]

It can handle most if not all of the options in requirement files that do not involve traversing the local filesystem. These include:

  • editables (-e git+https://github.com/toastdriven/pyelasticsearch.git]{.title-ref})
  • version control URIs
  • egg hashes and subdirectories ([\#egg=django-haystack&subdirectory=setup]{.title-ref})
  • extras ([DocParser[PDF]]{.title-ref})
  • URLs

Documentation

For more details and examples, the documentation is available at: http://requirements-parser.readthedocs.io.

Change Log

Change log is available on GitHub here

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].