Skip to main content

📄 Codereviewer

AI-powered documentation generator for GitHub repositories — fetch, extract, and document any repo in seconds.

Python Gemini Groq License


✨ Features

  • 🔍 Fetches repository information directly from GitHub
  • 📂 Extracts and filters relevant source files
  • 🤖 Uses AI (Gemini + Groq) to generate human-readable documentation

🛠️ Tech Stack

Layer Technology
Language Python 3.12+
AI Providers Gemini, Groq
Core Deps gemini, git_pull, regex, scouter, doc_writer, groq

⚙️ Requirements

  • Python 3.12+
  • GEMINI_API_KEY — Get it here
  • GROQ_API_KEY — Get it here
  • TOKEN — Personal GitHub access token

🚀 Installation

# 1. Clone the repository
git clone https://github.com/Abbos1308/Documentation-Maker-AI.git
cd codereviewer

# 2. Create and activate a virtual environment
python -m venv myenv
source myenv/bin/activate        # Linux/Mac
# myenv\Scripts\activate         # Windows

# 3. Install the package
pip install .


# 4. Set environment variables
export GEMINI_API_KEY=your_gemini_key
export GROQ_API_KEY=your_groq_key
export TOKEN=your_github_token

Or you can install the package directly from PyPi:

pip install docmakerai

⚡ Quickstart

python main.py https://github.com/owner/repo.git

Or use it programmatically:

from docmakerai.generator import generate

print(generate("https://github.com/owner/repo.git","your_git_token_here","your_ai_api_key_here"))

🔧 Configuration

All configuration is done via environment variables:

Variable Description Required
GEMINI_API_KEY Gemini API Key ✅ Yes
GROQ_API_KEY Groq API Key ✅ Yes
TOKEN Personal GitHub access token ✅ Yes

📁 Project Structure

codereviewer/
├── main.py          # Entry point — run from CLI
├── doc_writer.py    # Core documentation generation logic
└── pyproject.toml   # Project metadata & dependencies

📖 API Reference

Generates documentation for a given GitHub repository.

Parameters:

Name Type Description
link str Full URL of the GitHub repository

Returns: str — The generated documentation.

Example:

from docmakerai.generator import generate 

docs = generate("https://github.com/owner/repo.git","your_git_token_here","your_ai_api_key_here")
print(docs)

❗ Error Reference

Error Message Cause
ERROR: Failed to fetch repository. Could be deleted or private. Please check and retry Repo is private, deleted, or the token is invalid
ERROR: Failed to connect with AI. Please try again in few minutes AI service is unreachable or rate-limited

Metadata

Release files for docmakerai 0.1.7

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

Source distribution (sdist)

Source distribution for docmakerai 0.1.7
File Size Uploaded Provenance Actions
docmakerai-0.1.7.tar.gz 6.4 kB Without provenance Details for docmakerai-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docmakerai 0.1.7
File Interpreter ABI Platform Actions
docmakerai-0.1.7-py3-none-any.whl Python 3 none any Details for docmakerai-0.1.7-py3-none-any.whl

Total release size: 14.2 kB

Release files / docmakerai-0.1.7.tar.gz

Download URL docmakerai-0.1.7.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
72e88f3193a1e49c72b15eeb548ba29cef3ecb325a93cff5aacc5e8c579c1ce7
BLAKE2b-256 checksum
How to use checksums
7127fd1b7369cfe4ad0554970363ea2d6b402d954a661893701c4ac35833dfec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / docmakerai-0.1.7-py3-none-any.whl

Download URL docmakerai-0.1.7-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe859486d6066621cfc616b28df6edd40f6eeaa96140de6e653c108c7bad9eb0
BLAKE2b-256 checksum
How to use checksums
8e4d407a2e3a42346b49cf8c31607d6816529f94335ff6ecadeb387e39fe6d36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for docmakerai 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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