Skip to main content

📘 devDocs – AI-Powered README Generator

devDocs is a command-line tool that automatically generates clean, professional README.md files by analyzing your project structure, source code, and any existing documentation.

Powered by the Google Gemini API, it's ideal for:

  • 💡 Open-source contributors
  • 🛠️ Internal dev tools
  • 🚀 Hackathon projects needing docs fast

📂 Example Project Layout

Before and after running devDocs:

your-project/
├── src/
│   ├── code
│   └── s/es
├── tests/
├── requirements.txt
├── LICENSE
├── docs/          # ← Generated by devDocs
└── README.md      # ← Overwritten by devDocs (if chosen)

⚙️ How It Works

  1. Scans project directory and source files
  2. Parses content (code, comments, old README)
  3. Generates documentation via Google Gemini
  4. Saves output in Markdown format

📦 Installation

Install via pip:

pip install devDocs

🔑 Requirements


🚀 Usage

Run inside your project’s root:

devDocs [OPTIONS]

Paste your Gemini API key when prompted.

CLI Options

Option Description
--path Root folder to scan (default: .)
--name Project name to display in the README
--description Short project summary
--authors Comma-separated list of authors
--keywords Comma-separated keywords (e.g., cli, docs, ai)
--overwrite Overwrite existing README.md (default: False)
--output Output folder (default: docs/)
--exclude Comma-separated paths/extensions to exclude
--include Comma-separated paths/extensions to force include

✅ Example

devDocs --path . \
        --name "Cool Dev Tool" \
        --description "Generate AI-based READMEs effortlessly" \
        --authors "Gantavya Bansal" \
        --keywords "cli, docs, automation" \
        --output docs \
        --overwrite

🧠 Key Features

✅ Auto-generates structured README.md ✅ Respects original files unless --overwrite ✅ Fine-grained include/exclude control ✅ Generates a visual folder tree ✅ Clean output in a dedicated --output folder ✅ Backed by Google Gemini for high-quality results


🧱 Tech Stack

  • Python 3.8+
  • google-genai
  • Built-in: argparse, os, logging, time

🛠️ Dev Notes

Workflow

CLI args → Filter files → Extract context → Call Gemini → Write docs

API Prompt Template

system_instruction = '''
You are Gantavya Bansal, a senior engineer and technical writer.
Generate professional Markdown documentation using context from code and folder structure.
Include:
- Title
- Folder Tree
- Description
- Usage
- Tech Stack
- Known Issues
- Licensing
'''

⚠️ Limitations

  • 📶 Requires internet (for Gemini API)
  • 🔁 Retry logic for failed API calls is minimal
  • ❌ Regex not yet supported in filters
  • 📄 Only outputs .md format (Markdown)

📜 License

Released under the MIT License. Use, modify, and share freely — attribution appreciated.


🤝 Contribute

Found a bug or have an idea? Open an issue or submit a PR — contributions are always welcome!


Metadata

Release files for devDocs 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devDocs 3.0.0
File Size Uploaded
devdocs-3.0.0.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for devDocs 3.0.0
File Interpreter ABI Platform
devdocs-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / devdocs-3.0.0.tar.gz

Download URL devdocs-3.0.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0d18ea9ba47048dacf291511486a50853322f52c8dc2db3b6c279b80ef0c0474
BLAKE2b-256 checksum
How to use checksums
df0528f6692798545a4506b51260cea68c9c45fec12f0290f7f68b1dc4c8344c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 1, 2026.

Transparency log

Release files / devdocs-3.0.0-py3-none-any.whl

Download URL devdocs-3.0.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2551ed0e8bf4d1e00afbbc08baec3252c22a6411f95a736014ac402e32e52d16
BLAKE2b-256 checksum
How to use checksums
6025b5cdbd5d7e42dd42b3e985b2735ca4bf4c7dcd67f5c711ccd7c78d250f1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.3

2 release files

1.0.3

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page