A parser for Python dependency files
Project description
Dependency Parser
A parser for Python dependency files
Free software: MIT license
Documentation: https://dparse.readthedocs.io.
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
Release history Release notifications | RSS feed
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)
Built Distribution
dparse-0.1.0-py2-none-any.whl
(10.0 kB
view hashes)