Skip to main content

Dependency resolution for Python

Project description

DepHell

Dependency resolution for Python.

Installation

sudo pip3 install dephell

CLI usage

With arguments:

python3 -m dephell convert \
    --from-format=pip --from-path=requirements.in \
    --to-format=piplock --to-path=requirements.txt

With config:

python3 -m dephell convert --config=pyproject.toml --env=main

Mix config and arguments:

python3 -m dephell convert --config=pyproject.toml \
    --to-format=piplock --to-path=requirements.txt

Available formats:

  1. pip -- pip's requirements file.
  2. piplock -- locked pip's requirements file.
  3. pipfile -- not locked Pipfile
  4. pipfilelock -- locked Pipfile

Python lib usage

from dephell import PIPConverter, Requirement

loader = PIPConverter(lock=False)
resolver = loader.load_resolver(path='requirements.in')

resolver.resolve()
reqs = Requirement.from_graph(resolver.graph, lock=True)

dumper = PIPConverter(lock=True)
dumper.dump(reqs=reqs, path='requirements.txt')

TODO

  1. Python version
  2. Hashes load
  3. Zero release (compatible with any constraints)
  4. right version to tag mapping for git

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

dephell-0.3.0.tar.gz (7.6 kB view details)

Uploaded Source

File details

Details for the file dephell-0.3.0.tar.gz.

File metadata

  • Download URL: dephell-0.3.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.0

File hashes

Hashes for dephell-0.3.0.tar.gz
Algorithm Hash digest
SHA256 59c2f8dc2fe40b7945bfc0fb63b747e08b840931c81e709a8e02c83f6d50e65c
MD5 73fb223ae6bb8bace968361a3e733d99
BLAKE2b-256 26ac015bffb824a39561fd4985a37db511a8eeb4383552638bfa2a6d9b0895a4

See more details on using hashes here.

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