Cognitive Complexity
JSON →Cognitive-complexity is a Python library designed to calculate the cognitive complexity of Python functions by analyzing their Abstract Syntax Trees (ASTs). Unlike cyclomatic complexity, cognitive complexity aims to measure how difficult code is for a human to understand, focusing on flow breaks, nesting, and other structures that increase mental effort. The current version is 1.3.0, released in August 2022, with a relatively low release cadence.
Traffic · last 30 days stale · no recent hits
total hits 18
actors 5 distinct systems
last hit 17d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · VN
Resources
API endpoints
full doc /v1/registry/cognitive-complexity
compatibility /v1/registry/cognitive-complexity/compatibility