Skip to main content

Automatically generate comprehensive technical documentation from Python codebases

Project description

docgenny 📚

Automatically generate comprehensive technical documentation from your Python codebase

PyPI version License: MIT Python 3.8+

✨ 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:

  1. Table of Contents - Quick navigation
  2. Project Structure - Visual file tree
  3. Models & Schemas - Detailed class documentation
  4. 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

🙏 Acknowledgments

Built with ❤️ for developers who value good documentation.


Made with Python | Powered by AST parsing

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docgenny-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docgenny-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for docgenny-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b79fbed44434233af20146db2a528233697a9378f81983481b4787061f68e8d9
MD5 aaec1987997221eaf0c67a28e83476c3
BLAKE2b-256 48e9d5639a8154ce7ab9752ac84eb34f1e8f7a550d3f1cacf7f44a658e82ce78

See more details on using hashes here.

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

Hashes for docgenny-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf3eb1d832c8a95b38753b097fedd7dd029bd227924eeb437a401e024f444df
MD5 b96f73676ed1097c33b1ad4fb4d10c3c
BLAKE2b-256 f70f4465eb23676978d30442c6f0384cb44fcb98a8059f720c2e3441fc64fb47

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page