ResolveLib
ResolveLib at the highest level provides a Resolver class that includes dependency resolution logic. You give it some things, and a little information on how it should interact with them, and it will spit out a resolution result.
Intended Usage
import resolvelib
# Things I want to resolve.
requirements = [...]
# Implement logic so the resolver understands the requirement format.
class MyProvider:
...
provider = MyProvider()
reporter = resolvelib.BaseReporter()
# Create the (reusable) resolver.
resolver = resolvelib.Resolver(provider, reporter)
# Kick off the resolution process, and get the final result.
result = resolver.resolve(requirements)
The provider interface is specified in resolvelib.providers. You don’t need to inherit anything, however, only need to implement the right methods.
Terminology
The intention of this section is to unify the terms we use when talking about this code base, and packaging in general, to avoid confusion. Class and variable names in the code base should try to stick to terms defined here.
Things passed into Resolver.resolve() and provided by the provider are all considered opaque. They don’t need to adhere to this set of terminologies. Nothing can go wrong as long as the provider implementers can keep their heads straight.
Package
A thing that can be installed. A Package can have one or more versions available for installation.
Version
A string, usually in a number form, describing a snapshot of a Package. This number should increase when a Package post a new snapshot, i.e. a higher number means a more up-to-date snapshot.
Specifier
A collection of one or more Versions. This could be a wildcard, indicating that any Version is acceptable.
Candidate
A combination of a Package and a Version, i.e. a “concrete requirement”. Python people sometimes call this a “locked” or “pinned” dependency. Both of “requirement” and “dependency”, however, SHOULD NOT be used when describing a Candidate, to avoid confusion.
Some resolver architectures refer this as a “specification”, but it is not used here to avoid confusion with a Specifier.
Requirement
An intention to acquire a needed package, i.e. an “abstract requirement”. A “dependency”, if not clarified otherwise, also refers to this concept.
A Requirement should specify two things: a Package, and a Specifier.
Metadata
Release files for resolvelib 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| resolvelib-0.5.4.tar.gz | 14.5 kB | Without provenance | Details for resolvelib-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resolvelib-0.5.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for resolvelib-0.5.4-py2.py3-none-any.whl |
Total release size: 27.3 kB
Release files / resolvelib-0.5.4.tar.gz
| Download URL | resolvelib-0.5.4.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b9b80d5c60e4c2a8b7fbf0712c3449dc01d74e215632e5199850c9eca687628
|
|
BLAKE2b-256 checksum How to use checksums |
8f7fb8b2c7e8b2030710b6ef2d14b2201272dfe437d6c37cec29c60f38d3139d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Release files / resolvelib-0.5.4-py2.py3-none-any.whl
| Download URL | resolvelib-0.5.4-py2.py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8113ae3ed6d33c6be0bcbf03ffeb06c0995c099b7b8aaa5ddf2e9b3b3df4e915
|
|
BLAKE2b-256 checksum How to use checksums |
eb11bda2b7dee2c84d1f1923ae273023bb94d3e5ab3d1a46b4bd8cf5eb81a241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Security for resolvelib 0.5.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.