Automatically generate comprehensive technical documentation from your Python codebase
- 🌳 Smart File Tree - Generates a clean directory structure showing only important files
- 📦 Model Extraction - Automatically documents all classes, fields, and methods
- 🔧 Function Documentation - Captures function signatures, parameters, and return types
- 📝 Markdown Output - Creates beautifully formatted, easy-to-read documentation
- 🎯 Claude AI Ready - Perfect for adding to Claude Projects for AI-assisted development
- ⚡ Fast & Lightweight - Pure Python with minimal dependencies
pip install docgenny# Generate docs for current directory
docgenny
# Generate docs for specific project
docgenny /path/to/your/project
# Custom output file
docgenny -o API_DOCS.md
# Specify custom patterns
docgenny --include "*.js,*.ts" --exclude "test_*"from docgenny import DocumentationGenerator
# Generate documentation
generator = DocumentationGenerator(
root_path="./my_project",
output_file="TECHNICAL_DOCS.md"
)
generator.generate()# Basic usage
docgenny
# With all options
docgenny /path/to/project \
--output DOCS.md \
--include "*.py,*.md,*.yml" \
--exclude "__pycache__,*.pyc"- Class names and inheritance hierarchy
- All fields with types and default values
- Public methods and special methods (
__init__,__str__)
- Function signatures with type hints
- Parameter names and types
- Return types
- Docstrings (first line)
- Directory tree with important files only
- Automatic filtering of common build/cache directories
- Customizable include/exclude patterns
- 🤖 AI-Assisted Development - Add to Claude Projects for better context
- 👥 Team Onboarding - Quick reference for new developers
- 📚 API Documentation - Keep docs in sync with code
- 🔄 CI/CD Pipelines - Auto-generate docs on every commit
Create a .docgenny.yml file in your project root:
output: TECHNICAL_DOCS.md
include_patterns:
- "*.py"
- "*.md"
- "requirements*.txt"
exclude_patterns:
- "__pycache__"
- "*.pyc"
- ".git"
- "venv"The generated documentation includes:
- Table of Contents - Quick navigation
- Project Structure - Visual file tree
- Models & Schemas - Detailed class documentation
- Functions & Utilities - Function reference
Contributions are welcome! Please see CONTRIBUTING.md for details.
# Clone the repository
git clone https://github.com/rexbrandy/docgenny.git
cd docgenny
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install in development mode
pip install -e ".[dev]"
# Run tests
pytestThis project is licensed under the MIT License - see the LICENSE file for details.
If you find this tool useful, please consider giving it a star on GitHub!
- GitHub: @yourusername
- Issues: GitHub Issues
Built with ❤️ for developers who value good documentation.
Made with Python | Powered by AST parsing