Skip to main content

Simple what-if dep resolution for python

Project description

hdeps

Simple dependency not-a-solver lets you debug where backtracking would happen, or figure out what would change on a platform that's not the same as you're running right now.

This code was originally part of honesty but is easier to iterate on with pypi-simple as its source.

$ hdeps requests
...
$ hdeps --install-order requests
...
$ hdeps --have urllib3==1.999 requests
...

Why isn't it a solver?

Think of this as a debugging solver. It doesn't come up with one single solution, but does the bulk of the legwork to let you, the human, figure out what the problematic part of your dep tree is (even if the machine you're running on isn't the same as you're trying to figure out).

If you want a real solver, I highly recommend look at resolvelib for low-level operations, or poetry which includes a higher-level solver that keeps track of operations (like "upgrade" separately from "install").

Version Compat

This project should work on 3.10-3.12, including mypy compatibility as checked by tests. Linting on older versions will not catch all issues (e.g. whitespace in f-strings), so 3.12 is recommended. Some transitive dependencies (pydantic-core and libcst) rely on binary wheels that are not available yet on 3.13 and do not easily build from source.

License

MIT, see LICENSE for details.

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

hdeps-1.1.0.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

hdeps-1.1.0-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file hdeps-1.1.0.tar.gz.

File metadata

  • Download URL: hdeps-1.1.0.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for hdeps-1.1.0.tar.gz
Algorithm Hash digest
SHA256 aa4590bee8b3c6a157dc234c34def281d65f7141481fcdf29f3c1b9607221758
MD5 67b1d65c767773417a63cfdd38530f79
BLAKE2b-256 de84783b52e3ddde46d162a5edb86f5f92dca3a967ac5d85dca1d69b9e5da01a

See more details on using hashes here.

Provenance

File details

Details for the file hdeps-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: hdeps-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for hdeps-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2de060cb87b76bd7f5cc3b2d7429a4a462a800429b82d567633e4144a68e404
MD5 46ebc5c2bfe6e55f10cbf0e27ffe82cc
BLAKE2b-256 48c047380c3487bb7577c21e2c532e0ea9e104164a12d9e5f046d291d6f51541

See more details on using hashes here.

Provenance

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