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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2

File details

Details for the file dparse-0.1.0.tar.gz.

File metadata

  • Download URL: dparse-0.1.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dparse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 191079b76727564a759495338b0abba64be5aa2a48b876cff6967321adcc2a9c
MD5 b12088a0d4a010afd50b90f055ac3f4d
BLAKE2b-256 3bf14db6b93683edb017ea1523ab2f7b0159420904daa2bdb77956ec47ae7a48

See more details on using hashes here.

File details

Details for the file dparse-0.1.0-py2-none-any.whl.

File metadata

File hashes

Hashes for dparse-0.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 bb08095336fc874cfb63d73615e268a48b2aceb5fa25f9c1cdb32eb5ca634b0b
MD5 f8ede457a98883222d0f005950392295
BLAKE2b-256 0a6b2481b66ce4dd346a64355d683004cd67aec18625135950371eda0796e701

See more details on using hashes here.

Supported by

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