{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/5"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"Calculates cognitive complexity scores for Python code to measure how hard code is to understand by humans, accounting for nesting depth and control flow patterns.","skillfed_tags":["code-quality","static-analysis","ci-cd"],"use_cases":["Enforce code quality standards in CI/CD by failing builds when functions exceed a complexity threshold","Identify the most complex functions in a codebase to prioritize refactoring efforts","Track complexity regressions in pull requests by comparing against a baseline branch","Generate SARIF reports for GitHub Code Scanning to surface maintainability issues as inline PR annotations","Integrate with pre-commit hooks to catch overly complex functions before they reach the repository"],"what_it_does":"complexipy is a Python library that measures cognitive complexity\u2014how hard code is to understand for humans\u2014by analyzing nesting depth, control flow patterns, and code structure. Unlike cyclomatic complexity, which counts branches, cognitive complexity penalizes nested logic and human-unfriendly patterns to reflect actual readability challenges. The library is written in Rust for speed and provides both a command-line tool and a Python API.\n\nYou can use it to analyze individual files or entire codebases, set complexity thresholds, generate reports in multiple formats (JSON, CSV, SARIF, GitLab), compare complexity across git references, and integrate into CI/CD pipelines. It supports configuration via TOML files and includes pre-commit hooks, GitHub Actions, and VS Code integration.","worth_installing":"Yes. complexipy is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and fills a genuine need for cognitive complexity analysis in Python. The Rust backend and broad platform support (wheels for cp310, cp311, multiple architectures) reduce friction. It's suitable for teams wanting to measure and enforce code readability beyond traditional cyclomatic metrics."},"id":"complexipy","links":{"html":"https://skillfed.io/packages/complexipy","md":"https://skillfed.io/packages/complexipy.md","pypi":"https://pypi.org/project/complexipy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":null,"license_treatment":"permissive","name":"complexipy","python_support":"supports_current","summary":"An extremely fast Python library to calculate the cognitive complexity of Python files, written in Rust."},"popularity":{"monthly_downloads":610329,"position":5767,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"7.0.1"}
