Dependency resolution for Python
Project description
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:
pip
-- pip's requirements file.piplock
-- locked pip's requirements file.pipfile
-- not locked Pipfilepipfilelock
-- 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
- Python version
- Hashes load
- Zero release (compatible with any constraints)
- right version to tag mapping for git
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
dephell-0.3.0.tar.gz
(7.6 kB
view details)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59c2f8dc2fe40b7945bfc0fb63b747e08b840931c81e709a8e02c83f6d50e65c |
|
MD5 | 73fb223ae6bb8bace968361a3e733d99 |
|
BLAKE2b-256 | 26ac015bffb824a39561fd4985a37db511a8eeb4383552638bfa2a6d9b0895a4 |