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)
Metadata
Release files for autodg 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| autodg-1.0.3.tar.gz | 30.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| autodg-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 68.4 kB
Release files / autodg-1.0.3.tar.gz
| Download URL | autodg-1.0.3.tar.gz |
|---|---|
| Size | 30.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ee4ddffd9b3e2115495b1b0e277cc16b239f07102cb8bf014082c9c22cb67f0
|
|
BLAKE2b-256 checksum How to use checksums |
b02ead7dfb47c9857021f296fe85f12edcc21d7d714f99b711697cab74cb7d3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / autodg-1.0.3-py3-none-any.whl
| Download URL | autodg-1.0.3-py3-none-any.whl |
|---|---|
| Size | 38.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8011dcf03e0f2513ae329a7e51425ad5634f0743b9396418ae58fec71ef2790b
|
|
BLAKE2b-256 checksum How to use checksums |
74a42a993c697c0fcd815a735163e6f6a0e34a92645dc9a29d88860d88d66293
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for autodg 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.