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.
🚀 Features (15 Total)
- 📊 Count total lines, blank lines, comment lines
- 🧠 Detect and count all
defandclassblocks using regex - ✅ Find
# TODO:lines for task tracking - 📏 Calculate average line length using
numpy - 🌈 Colorful output using
coloramaandStyle - 📋 Pretty stats table with
tabulate - 🔦 Syntax highlighting with
pygments - 📈 Real-time graph of code stats with
matplotlib - 🧬 System monitoring (CPU & RAM) with
psutil - ⏱️ Progress simulation bar with
tqdm - 🌐 Real-time socket server with
socket - 🧪 PyPI package info fetcher (e.g., matplotlib)
- 🎨 Fancy terminal panel and formatting with
rich - 🧵 Multithreaded socket handler
- 📎 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee7fce5bdd6aadf73120481c08d71aac3f82d3fe32dbf3e01d310da6fcfad389
|
|
| MD5 |
44e4524c55743c0614dce053377dd615
|
|
| BLAKE2b-256 |
27914bfdccf0a72ad46ee822659bc32d485decd0bcfa1a393c39c4b4e6108f62
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb4715fc4cdf015a377d9d0efd6a0017a5e84d1ac86f3daf1c9f4d5569aed3a9
|
|
| MD5 |
f28553355b833c29a7e50f3c37da7255
|
|
| BLAKE2b-256 |
727b1d14815dac2b2e88bf922c4511ea31b2ae2161105ae2f7874aa54388013d
|