Automatically generate comprehensive technical documentation from Python codebases
Project description
docgenny 📚
Automatically generate comprehensive technical documentation from your Python codebase
✨ Features
- 🌳 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
🚀 Quick Start
Installation
pip install docgenny
Basic Usage
# 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_*"
📖 Usage Examples
Python API
from docgenny import DocumentationGenerator
# Generate documentation
generator = DocumentationGenerator(
root_path="./my_project",
output_file="TECHNICAL_DOCS.md"
)
generator.generate()
Command Line
# Basic usage
docgenny
# With all options
docgenny /path/to/project \
--output DOCS.md \
--include "*.py,*.md,*.yml" \
--exclude "__pycache__,*.pyc"
📋 What Gets Documented
Models & Classes
- Class names and inheritance hierarchy
- All fields with types and default values
- Public methods and special methods (
__init__,__str__)
Functions
- Function signatures with type hints
- Parameter names and types
- Return types
- Docstrings (first line)
Project Structure
- Directory tree with important files only
- Automatic filtering of common build/cache directories
- Customizable include/exclude patterns
🎯 Perfect For
- 🤖 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
🛠️ Configuration
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"
📊 Example Output
The generated documentation includes:
- Table of Contents - Quick navigation
- Project Structure - Visual file tree
- Models & Schemas - Detailed class documentation
- Functions & Utilities - Function reference
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
Development Setup
# 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
pytest
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🌟 Star History
If you find this tool useful, please consider giving it a star on GitHub!
📮 Contact
- GitHub: @yourusername
- Issues: GitHub Issues
🙏 Acknowledgments
Built with ❤️ for developers who value good documentation.
Made with Python | Powered by AST parsing
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 docgenny-0.1.0.tar.gz.
File metadata
- Download URL: docgenny-0.1.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b79fbed44434233af20146db2a528233697a9378f81983481b4787061f68e8d9
|
|
| MD5 |
aaec1987997221eaf0c67a28e83476c3
|
|
| BLAKE2b-256 |
48e9d5639a8154ce7ab9752ac84eb34f1e8f7a550d3f1cacf7f44a658e82ce78
|
File details
Details for the file docgenny-0.1.0-py3-none-any.whl.
File metadata
- Download URL: docgenny-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcf3eb1d832c8a95b38753b097fedd7dd029bd227924eeb437a401e024f444df
|
|
| MD5 |
b96f73676ed1097c33b1ad4fb4d10c3c
|
|
| BLAKE2b-256 |
f70f4465eb23676978d30442c6f0384cb44fcb98a8059f720c2e3441fc64fb47
|