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.0.tar.gz (9.2 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.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_readme_generator_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 9.2 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.0.tar.gz
Algorithm Hash digest
SHA256 ac76778bdbb016f0238428aa1a00fdac1115bf4b233ab5dbf0501b12c86fc080
MD5 c27cf7b96e9e4b6d009ae81fbdb0bf84
BLAKE2b-256 2d713ede18975886dcb3852645d565c85628766f2cb90d208043728c69691205

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ai_readme_generator_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c634d048d048ed65a63da0a994f8c893d16fb4c9c6d52f2ad9b27b2a667bf83
MD5 98ad996a353869f22926fce358e6d9bb
BLAKE2b-256 92270a74a98dbdebbcd3196e11929d87ba3c0cd24d74838bd18691fa6935bea8

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