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.

Files for dparse, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size dparse-0.1.0-py2-none-any.whl (10.0 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size dparse-0.1.0.tar.gz (19.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page