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

pip Usage

# Always install latest one
pip install ai-readme-generator-cli

# run init first
readme-gen init

# generate readme
readme-gen 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.3.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.3-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_readme_generator_cli-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 9ca5a752dcf2ef96322352e57fcaf544266e5be1220d986a6e0e200b32c63dc0
MD5 2b02653dd9a555db69c57073068ad421
BLAKE2b-256 23b41fde118b08090503ff99c658113d69c22e76b03d524c0a3d7fdac965a824

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ai_readme_generator_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75c409931d4c3ec8a07549823301aca2fa1fcf274bccb1d32d32b9dc521a9f3a
MD5 89f8e2eeb609723228ffc7e257e6beb7
BLAKE2b-256 58377a49d2160aab7b76b38738360d972b70fe7b42959425fea90b5fd25d6ac9

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