{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools"}],"enrichment":{"capability":"Performs logical operations (AND, OR) on PEP 440 version specifiers and PEP 508 environment markers, allowing you to combine, intersect, or union dependency constraints programmatically.","skillfed_tags":["dependency-resolution","pep-compliance"],"use_cases":["Combine version constraints from multiple sources to compute the intersection of acceptable versions.","Simplify or normalize environment marker expressions for dependency resolution logic.","Build a dependency resolver that needs to reason about version ranges and platform requirements.","Parse and manipulate PEP 440 and PEP 508 syntax in a tool or library without heavy dependencies.","Test whether a given version or environment satisfies a set of logical constraints."],"what_it_does":"dep-logic is a lightweight utility for manipulating Python dependency specifications using logical operations. It parses PEP 440 version specifiers and PEP 508 environment markers, then lets you combine them with AND and OR operators to compute intersections, unions, and simplified constraint expressions. The library wraps PyPA's packaging module and aims to provide PEP-compliant behavior as an alternative to heavier tools like poetry-core.\n\nYou'd use this when building dependency resolvers, constraint solvers, or tools that need to reason about version ranges and platform requirements programmatically. It handles three sub-modules: specifiers for version ranges, markers for environment conditions, and tags for platform identifiers. The main limitation is partial support for `===` (arbitrary equality) specifiers.","worth_installing":"Yes. Low install friction, active maintenance, no known vulnerabilities, and permissive licensing make it a safe choice. Install it if you need to perform logical operations on version specifiers or environment markers in a dependency-aware tool or resolver; skip it if you only need to parse or validate specs without combining them."},"id":"dep-logic","links":{"html":"https://skillfed.io/packages/dep-logic","md":"https://skillfed.io/packages/dep-logic.md","pypi":"https://pypi.org/project/dep-logic/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-10","license_spdx":null,"license_treatment":"permissive","name":"dep-logic","python_support":"supports_current","summary":"Python dependency specifications supporting logical operations"},"popularity":{"monthly_downloads":11917040,"position":1352,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.7.1"}
