Dep-Logic is a Python library that provides a robust API for working with package version specifiers and dependencies, supporting logical operations (AND, OR) on them. It is currently at version 0.5.2 and sees active development with several releases per year.
pip install dep-logicVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create `Specifier` and `SpecifierSet` objects, perform logical AND/OR operations on them, check version containment, and define a `Dependency` object.
Consult the library's documentation or source code to find the current import path for `Specifier` and `SpecifierSet`, as they are not available directly under `dep_logic`.
Refactor code using `DependencySpecifier` or old `Dependency` constructors to use the new `Dependency(name, specifier)` signature.
Ensure that when creating `Dependency` objects, you always provide a `specifier` argument.
Carefully consider the logical operation needed for your dependency constraints. Test with edge cases to ensure the combined specifier behaves as expected.
No dependency data recorded yet.