Skip to main content

Advanced Python code analyzer with regex, colorized output, visual stats, and more.

Project description

🔍 Codalyzer

Codalyzer is a powerful, advanced Python code analyzer that provides in-depth statistics, real-time socket feedback, colorful terminal output, and visual insights using modern Python packages.

Codalyzer Banner


🚀 Features (15 Total)

  1. 📊 Count total lines, blank lines, comment lines
  2. 🧠 Detect and count all def and class blocks using regex
  3. ✅ Find # TODO: lines for task tracking
  4. 📏 Calculate average line length using numpy
  5. 🌈 Colorful output using colorama and Style
  6. 📋 Pretty stats table with tabulate
  7. 🔦 Syntax highlighting with pygments
  8. 📈 Real-time graph of code stats with matplotlib
  9. 🧬 System monitoring (CPU & RAM) with psutil
  10. ⏱️ Progress simulation bar with tqdm
  11. 🌐 Real-time socket server with socket
  12. 🧪 PyPI package info fetcher (e.g., matplotlib)
  13. 🎨 Fancy terminal panel and formatting with rich
  14. 🧵 Multithreaded socket handler
  15. 📎 Supports direct execution from terminal with CLI argument

💾 Installation

pip install codalyzer

Or clone manually:
git clone https://github.com/yourusername/codalyzer
cd codalyzer
pip install -r requirements.txt

🛠️ Usage

bash
python -m codalyzer.core <your_python_file.py>

Example:

bash

python -m codalyzer.core sample_script.py

✅ Output Includes
Fancy table with code metrics

Colored list of all functions, classes, TODOs

Visual matplotlib graph of stats

Live CPU & RAM usage

Live socket listener

PyPI info of matplotlib

Highlighted source code

Progress bar for simulation

🔗 Dependencies
matplotlib

numpy

colorama

requests

tqdm

psutil

rich

pygments

tabulate

socketify

📷 Sample Output (Terminal)

🔍 Regex Match Summary:
Functions (def): 3 match(es)
   def run():
   def main():
   def count_all_lines()

Classes (class): 2 match(es)
   class Analyzer:
   class Test:

TODO Comments: 1 match(es)
   # TODO: implement better analysis

🧠 CPU: 28% | 🧬 RAM: 53%

🤝 Contributing
Want to improve Codalyzer? Open an issue or PR!

📬 Contact
Made by Adam Alcander et Eden
Licensed under MIT
GitHub Repo

🏆 Motto
"Code is Art. Analyze it with Style." 🎨

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codalyzer-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codalyzer-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file codalyzer-0.1.0.tar.gz.

File metadata

  • Download URL: codalyzer-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for codalyzer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ee7fce5bdd6aadf73120481c08d71aac3f82d3fe32dbf3e01d310da6fcfad389
MD5 44e4524c55743c0614dce053377dd615
BLAKE2b-256 27914bfdccf0a72ad46ee822659bc32d485decd0bcfa1a393c39c4b4e6108f62

See more details on using hashes here.

File details

Details for the file codalyzer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: codalyzer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for codalyzer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb4715fc4cdf015a377d9d0efd6a0017a5e84d1ac86f3daf1c9f4d5569aed3a9
MD5 f28553355b833c29a7e50f3c37da7255
BLAKE2b-256 727b1d14815dac2b2e88bf922c4511ea31b2ae2161105ae2f7874aa54388013d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page