Skip to main content

Generate professional README.md files using AI

Project description

readmegen-cli ๐Ÿ› ๏ธ๐Ÿ“„ โ€” AI-Powered README Generator

PyPI Version Python Versions License

readmegen-cli is a smart command-line tool that uses Google Gemini AI to auto-generate clean, professional, and detailed README.md files based on your project's structure, dependencies, and content.


โœจ Features

  • ๐Ÿ“‚ Analyzes your local project files for key data
  • ๐Ÿค– Uses Gemini AI (1.5 / 2.5) for rich README generation
  • ๐Ÿ“Œ Detects languages, dependencies, config, tests, and docs
  • ๐Ÿ’ฌ Accepts custom prompts to tailor output
  • ๐Ÿ’พ Automatically backs up old READMEs (unless --overwrite)
  • ๐Ÿง  Summarizes project insights before generation

๐Ÿ“ฆ Installation

Install from PyPI:

pip install readmegen-cli

Or install locally for development:

git clone https://github.com/inevitablegs/readmegen-cli
cd readmegen-cli
pip install .

๐Ÿ” Setup: API Key Required

You must set your Gemini API key to use this tool:

Option 1: .env File

Create a .env in your project or home directory:

GEMINI_API_KEY=your_google_gemini_api_key

Get your key here: https://makersuite.google.com/app/apikey

Option 2: System Environment Variable

export GEMINI_API_KEY=your_key_here  # Linux/Mac
$env:GEMINI_API_KEY="your_key_here"  # PowerShell

๐Ÿš€ Usage

Basic

readmegen-cli .

โœ… Generates a README.md in the current project folder.

With Custom Instructions

readmegen-cli . --prompt "Add badges and a quickstart section"

Save to Custom File

readmegen-cli . --output CUSTOM_README.md

Overwrite Without Backup

readmegen-cli . --overwrite

๐Ÿง  What It Does

  • Detects: languages, file counts, dependencies, key config files
  • Prepares AI prompt with project insights
  • Sends to Gemini 2.5 Flash model
  • Outputs a fully structured Markdown README

๐Ÿ“ Project Structure

readmegen-cli/
โ”œโ”€โ”€ readmegen_core/
โ”‚   โ”œโ”€โ”€ cli.py
โ”‚   โ”œโ”€โ”€ generate.py
โ”‚   โ”œโ”€โ”€ local_inspector.py
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ setup.py
โ”œโ”€โ”€ setup.cfg
โ”œโ”€โ”€ pyproject.toml
โ””โ”€โ”€ .github/
    โ””โ”€โ”€ workflows/publish.yml

๐Ÿ›  Tech Stack

Technology Purpose
Python 3.7+ CLI engine
argparse Command-line parsing
dotenv Load .env API key
google-generativeai Connect to Gemini models
setuptools/wheel Packaging

๐Ÿ” GitHub Actions (CI/CD)

Auto-publishing to PyPI is supported using .github/workflows/publish.yml triggered on releases.


๐Ÿค Contributing

PRs and issues welcome! Improve prompts, templates, or features.


๐Ÿ“œ License

MIT License ยฉ 2025 Ganesh Sonawane


๐Ÿ“ฆ Links

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_cli-0.1.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

readmegen_cli-0.1.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file readmegen_cli-0.1.3.tar.gz.

File metadata

  • Download URL: readmegen_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for readmegen_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 613356c24d0daa8304b48a84c454e4c055d6b18221c164c14592ceea8c04b0c5
MD5 1d69608e24254812258c4c361fcdfc6e
BLAKE2b-256 e3e72d1b1de588e845f1bad9aeb2848357acf58d06df288d5ed8268b1c80f5bc

See more details on using hashes here.

File details

Details for the file readmegen_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: readmegen_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for readmegen_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d70b1580ea38a144f3607e7bb19337fcffe1e120ea95174435165137eff9dea4
MD5 4cd6e0e6ab51f85a99c018f59ab9bb97
BLAKE2b-256 7a483369c74e12033aba8d24ba916607f4a80b5128132fe2ec104aaa2fcd1970

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