Skip to main content

A parser for Python dependency files

Project description

Dependency Parser

https://img.shields.io/pypi/v/dparse.svg https://img.shields.io/travis/pyupio/dparse.svg https://codecov.io/gh/pyupio/dparse/branch/master/graph/badge.svg Documentation Status Updates

A parser for Python dependency files

Supported Files

File

parse

update

requirements.txt

yes

yes

conda.yml

yes

yes

tox.ini

yes

yes

Pipfile

no (# 1)

no (# 1)

Pifile.lock

no (# 1)

no (# 1)

setup.py

no (# 2)

no (# 2)

zc.bildout

no (# 3)

no (# 3)

Installation

To install dparse, run:

$ pip install -e git+https://github.com/pyupio/dparse.git

Usage

To use dparse in a Python project:

from dparse import parse, filetypes

content = """
-e common/lib/calc
South==1.0.1 --hash==abcdefghijklmno
pycrypto>=2.6
git+https://github.com/pmitros/pyfs.git@96e1922348bfe6d99201b9512a9ed946c87b7e0b
distribute>=0.6.28, <0.7
# bogus comment
-e .
pdfminer==20140328
-r production/requirements.txt
--requirement test.txt
"""

df = parse(content, filetype=filetypes.requirements_txt)

print(df.json())

History

0.1.0 (2017-07-11)

  • Initial, not much to see here.

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

dparse-0.1.0.tar.gz (19.8 kB view hashes)

Uploaded Source

Built Distribution

dparse-0.1.0-py2-none-any.whl (10.0 kB view hashes)

Uploaded Python 2

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