Skip to main content

A stateful AI-powered README generator using LangGraph and multi-model orchestration.

Project description

CodeAnalyzer

Automate your code analysis and documentation effortlessly!


📖 Overview

CodeAnalyzer is a powerful tool designed to streamline the process of analyzing code files and generating comprehensive README documentation. It utilizes advanced language models to provide structured summaries and insights, making documentation quick and efficient.

✨ Features

📂 File Management

  • Effortlessly retrieve and filter code files based on configurable paths.
  • Supports inclusion and exclusion criteria for targeted analysis.

🔍 Code Analysis

  • Batch processes code files to generate meaningful insights.
  • Utilizes language models for in-depth analysis and summary generation.

📄 README Generation

  • Automatically generates structured README files from analyzed code.
  • Formats output to ensure clarity and professionalism.

⚙️ Command Line Interface

  • User-friendly CLI for easy configuration and execution.
  • Allows quick initialization and management of analysis tasks.

🏗️ Tech Stack

  • Python
  • Command Line Interface (CLI)

🚀 Getting Started

Installation

git clone https://github.com/akshat231/Readme-Generator-Python
cd Readme-Generator-Python
pip install -r requirements.txt

⚙️ Configuration (analyzer.json)

The init command generates a config/analyzer.json file. This file acts as the brain of the generator, allowing you to define the scope of the code analysis. LLM Settings

Fine-tune your AI provider and cost parameters:

  • key: Your API key (OpenAI, Anthropic, or Gemini).

  • model_provider: Choose between OPENAI, ANTHROPIC, or GOOGLE.

  • model: Specific model identifier (e.g., gpt-4o-mini, claude-3-5-sonnet).

  • batch_limit: Maximum tokens processed in a single analysis pass.

  • temperature: Controls creativity (0.0 for technical precision, 0.7+ for punchier marketing text).

File Filtering & Ignored Content

Prevent the AI from getting bogged down by non-essential files:

  • ignore_dirs: Directories to skip (defaults include node_modules, .git, and pycache).

  • ignore_extensions: Skips binary or non-text files like .png, .exe, or .zip.

  • ignore_files: Specifically targets heavy metadata files like package-lock.json or poetry.lock.

Targeted Analysis

  • include_dirs / include_files: If populated, the generator will only look at these paths, ignoring everything else. This is perfect for generating a README for a specific sub-module within a large monorepo.

Example analyzer.json Workflow

  • Run init: Creates the folder and default JSON.

  • Edit JSON: Add your key and maybe add docs to ignore_dirs.

  • Run generate: The tool reads these rules, filters your file system, and sends only the relevant code snippets to the AI.

💡 Usage Example

# For initializing
python cli_tools.cli.py init
# For generating README.md
python3 cli_tools.cli generate

🤝 Contributing

Pull requests are welcome! For larger changes, please open an issue to discuss ideas first.

📜 License

MIT License — free to use, modify, and distribute.

Generated with ❤️ by your AI-README-Generator

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

ai_readme_generator_cli-0.1.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

ai_readme_generator_cli-0.1.2-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file ai_readme_generator_cli-0.1.2.tar.gz.

File metadata

  • Download URL: ai_readme_generator_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ai_readme_generator_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7b6089dcaa7a3adddc8d5655c22c0d3ae35732ce296641de05a1ac99041799c8
MD5 bd86e4bb9eefae199df1b4d16eb740bb
BLAKE2b-256 c0cfcab71235c2b02df9a443995377ef10abf9b036f74419d3331b5c26ffe45b

See more details on using hashes here.

File details

Details for the file ai_readme_generator_cli-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_readme_generator_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 903f11c1944cfb7c79f93d0f686913047eda8e0b8d2fb1115723656907dd1071
MD5 935edcc690f3df4f855e8b0bf8f3171c
BLAKE2b-256 1d61500fbc4077e4a475246303f63bd18fec4fb37859a702cc913cf2bc15eb79

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