A modular Python API analyzer for Flask, FastAPI, Django, and DRF with AI-powered documentation generation
Project description
AutoDG (Automated Documentation Generator) 💎
AutoDG is a premium, AI-driven documentation generator for Python API projects. It performs deep static and dynamic code analysis to transform complex backends into clear, actionable, and visually rich documentation.
🚀 Core Capabilities
1. Multi-Dimensional Documentation
- API Request Documentation: Detailed technical specs for every endpoint, including headers, parameters, and handler logic.
- File-wise Intelligence: Comprehensive AI-generated overviews of every Python module in your project.
- Visual Call Graphs: Mermaid.js diagrams showing cross-functional dependencies.
- Database Mapping: Visualizes database operations and relationships per endpoint.
2. AI Auditing & Insights
- Security Audit: Identifies SQL injection, XSS, and authentication vulnerabilities.
- Efficiency Analysis: Detects N+1 query patterns and performance bottlenecks.
- Code Suggestions: Provides line-by-line quality and refactoring recommendations.
3. Business & Operational Suites
- Feature Map & User Stories: Translates code into human-readable business features and requirements.
- DevOps Playbooks: Auto-generates Scaling Guides and Deployment (Docker/CI-CD) documentation.
- Automated Changelog: Generates a technical summary of project state and architectural evolution.
4. Enterprise-Grade UX
- Live Flight Plan: Transparent dashboard summary before analysis begins.
- Dynamic Progress: Real-time progress bars with ETAs for long-running AI tasks.
- Robust Logging: Detailed execution audit trails in
aidocs_generation.log. - Framework Support: Native compatibility with FastAPI, Flask, Django, and DRF.
⚙️ Installation
pip install autodg
Enable AI Cloud Providers
To use cloud LLMs, install the corresponding extras:
pip install autodg[openai] # OpenAI (GPT-4)
pip install autodg[claude] # Anthropic (Claude 3.5)
pip install autodg[gemini] # Google (Gemini 1.5)
pip install autodg[all] # All-in-one installation
🛠 Usage Guide
Simple Static Analysis
Generates technical docs without AI costs:
autodg --paths /path/to/project --output ./docs
Full AI Suite (Recommended)
Generates the complete documentation package using a local Ollama instance:
autodg --paths /path/to/project \
--output ./docs \
--ollama true \
--gen-features \
--gen-devops \
--gen-changelog
Advanced CLI Options
| Flag | Values | Description |
|---|---|---|
--paths |
path |
Required. Path to your source code root. |
--output |
path |
Output directory (default: output). |
--doc-type |
request, file, both |
Choose between API docs, File overviews, or both. |
--ollama |
true, false |
Enable AI-powered auditing and explanations. |
--gen-features |
flag |
Generate Feature Map & User Stories. |
--gen-devops |
flag |
Generate Scaling & Deployment Guides. |
--gen-changelog |
flag |
Generate AI-driven project changelog. |
📝 Configuration (config.yaml)
To use cloud providers or customize your local LLM, create a config.yaml in your project root:
llm:
provider: ollama # Options: ollama, openai, claude, gemini
ollama:
host: http://localhost:11434
model: llama3.1
openai:
api_key: "your-key-here"
model: "gpt-4-turbo"
📂 Artifact Hierarchy
Your output/ directory will contain:
request_docs/: Technical specs for every API route.file_docs/: AI overviews for every codebase file.features_and_stories.md: Business requirements mapping.scaling_guide.md: infrastructure scaling strategies.deployment_guide.md: CI/CD and containerization plans.changelog.md: Architectural state summary.aidocs_generation.log: Detailed audit trail of the generation process.
📄 License
MIT License - see LICENSE for details.
✍️ Author
Dhinagaran S (atsupp02@gmail.com)
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
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 autodg-1.0.3.tar.gz.
File metadata
- Download URL: autodg-1.0.3.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ee4ddffd9b3e2115495b1b0e277cc16b239f07102cb8bf014082c9c22cb67f0
|
|
| MD5 |
3215a1d970203a69ca05f6e9317119fc
|
|
| BLAKE2b-256 |
b02ead7dfb47c9857021f296fe85f12edcc21d7d714f99b711697cab74cb7d3a
|
File details
Details for the file autodg-1.0.3-py3-none-any.whl.
File metadata
- Download URL: autodg-1.0.3-py3-none-any.whl
- Upload date:
- Size: 38.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8011dcf03e0f2513ae329a7e51425ad5634f0743b9396418ae58fec71ef2790b
|
|
| MD5 |
c5213f9d72c435939d96839d620b9dbe
|
|
| BLAKE2b-256 |
74a42a993c697c0fcd815a735163e6f6a0e34a92645dc9a29d88860d88d66293
|