About Cognitive Code Complexity
One way to check the cognitive complexity of your code as for humans is using the complexipy package:
(venv)$ pip install complexipy
(venv)$ complexipy .
It will show you the list of checked files with their complexity evaluations:
- Complexity ≤ 5: Simple, easy to understand.
- Complexity 6-15: Moderate, acceptable for most cases.
- Complexity > 15: Complex, consider refactoring into smaller functions.
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You