Metadata-Version: 2.4
Name: ai-readme-generator-cli
Version: 0.1.3
Summary: A stateful AI-powered README generator using LangGraph and multi-model orchestration.
Author-email: Akshat Sharma <akshatsharmasde@gmail.com>
License: MIT
Keywords: ai,automation,gemini,langchain,langgraph,openai,readme
Requires-Python: >=3.9
Requires-Dist: langchain-anthropic<2.0,>=1.3
Requires-Dist: langchain-core<2.0,>=1.2
Requires-Dist: langchain-google-genai<5.0,>=4.2
Requires-Dist: langchain-openai<2.0,>=1.1
Requires-Dist: langchain<2.0,>=1.2
Requires-Dist: langgraph<2.0,>=1.0
Requires-Dist: pydantic-settings<3.0,>=2.12
Requires-Dist: pydantic<3.0,>=2.10
Requires-Dist: python-dotenv<2.0,>=1.2
Requires-Dist: requests<3.0,>=2.32
Requires-Dist: tiktoken<1.0,>=0.12
Description-Content-Type: text/markdown

# 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
```bash
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
```python
# For initializing
python cli_tools.cli.py init
# For generating README.md
python3 cli_tools.cli generate
```
## pip Usage

``` python
# 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
