Skip to main content

AI-powered README generator for any codebase

Project description

📝 ReadmeGen

AI-powered README generator for any codebase — scan your project, get a polished README in seconds.

Python 3.9+ License: MIT


Stop spending hours writing documentation. ReadmeGen scans your codebase — detecting languages, frameworks, dependencies, and project structure — then uses AI to generate a comprehensive, professional README tailored to your project.

✨ Features

  • Smart Project Scanning — Automatically detects 30+ languages, 40+ frameworks, dependencies, entry points, CI/CD, Docker, and more
  • Multiple AI Providers — Works with OpenAI (GPT-4o) and Anthropic (Claude) — bring your own API key
  • Configurable Output — Markdown or reStructuredText, three writing styles, toggleable sections
  • Badges — Auto-generates relevant shields.io badges
  • Table of Contents — Optional auto-generated TOC
  • API Documentation — Extracts and documents public APIs
  • Contributing Guide — Generates a contributing section based on your project setup
  • Config File Support — Drop a .readmegen.yml in your project for persistent settings
  • Dry Run Mode — Preview the generated README before writing to disk

🚀 Quick Start

Installation

pip install readmegen

Usage

# Set your API key
export OPENAI_API_KEY="sk-..."
# or
export ANTHROPIC_API_KEY="sk-ant-..."

# Generate README for current directory
readmegen .

# Generate for a specific project
readmegen /path/to/your/project

# Preview without writing
readmegen . --dry-run

# Use Anthropic Claude
readmegen . --provider anthropic

# Minimal style, no badges
readmegen . --style minimal --no-badges

# Output as reStructuredText
readmegen . --format rst --output README.rst

⚙️ Configuration

Create a .readmegen.yml in your project root:

# AI Provider: "openai" or "anthropic"
provider: openai

# Writing style: "professional", "casual", or "minimal"
style: professional

# Output settings
output: README.md
format: md

# Sections to include
badges: true
toc: true
api_docs: true
contributing: true
license: true

CLI flags override config file settings.

🎯 CLI Options

Option Description Default
--provider, -p AI provider (openai / anthropic) Auto-detect
--model, -m Model name gpt-4o / claude-sonnet-4-20250514
--output, -o Output filename README.md
--format, -f Output format (md / rst) md
--style Writing style (professional / casual / minimal) professional
--badges / --no-badges Include badges true
--toc / --no-toc Table of contents true
--api-docs / --no-api-docs API documentation true
--contributing / --no-contributing Contributing section true
--dry-run Preview without writing false

🔍 What It Detects

ReadmeGen scans your project and extracts:

  • Languages — Python, JavaScript, TypeScript, Go, Rust, Java, C++, and 25+ more
  • Frameworks — Django, Flask, FastAPI, React, Next.js, Vue, Express, and 30+ more
  • Dependencies — From requirements.txt, package.json, pyproject.toml, Cargo.toml, go.mod
  • Project Structure — Entry points, test directories, CI/CD configs
  • Infrastructure — Docker, Kubernetes, Helm, Terraform, Serverless
  • License — MIT, Apache, GPL, BSD auto-detection

📋 Requirements

  • Python 3.9+
  • An OpenAI or Anthropic API key

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.

📄 License

MIT License — see LICENSE for details.

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

readmegen_ai-1.0.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

readmegen_ai-1.0.0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file readmegen_ai-1.0.0.tar.gz.

File metadata

  • Download URL: readmegen_ai-1.0.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for readmegen_ai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5a223f9951822822a3b75f4c20479c444252ee5c2b77be975f4c42feeb666da7
MD5 e70961b62f7e2e40b08c35d5efd24726
BLAKE2b-256 89022795af816a05e545ceb3aef0d718d5a72588360339cc6e1e9b1c4f6f8294

See more details on using hashes here.

Provenance

The following attestation bundles were made for readmegen_ai-1.0.0.tar.gz:

Publisher: publish.yml on cspnanda007/readmegen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file readmegen_ai-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: readmegen_ai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for readmegen_ai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60ad6636f6ea1919ce023ce9819c7f37f048fa6e9368661016174ff14aab684b
MD5 e4e7cea24c72da368411745d83b97c23
BLAKE2b-256 b375dba191011c1b032561fe5e3cd4be9e19dd76acef3663173bb5b2216a7de0

See more details on using hashes here.

Provenance

The following attestation bundles were made for readmegen_ai-1.0.0-py3-none-any.whl:

Publisher: publish.yml on cspnanda007/readmegen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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