--- id: resolvelib version: "1.2.1" license: ISC License license_treatment: permissive maintenance: active --- # resolvelib — Resolve abstract dependencies into concrete ones License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install resolvelib uv add resolvelib poetry add resolvelib ## Description ========== 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... ## AI interpretation — verify before relying ResolveLib provides a generic dependency resolution engine that takes abstract requirements and a custom provider interface to produce a concrete, conflict-free set of candidates. Verdict: ResolveLib is a lightweight, actively maintained, permissively licensed dependency resolver suitable for embedding in tools that need generic conflict resolution. Zero security vulnerabilities and no external dependencies make it a low-risk choice for projects needing programmatic dependency resolution logic. [View on SkillFed](https://skillfed.io/packages/resolvelib) · [View on PyPI](https://pypi.org/project/resolvelib/)