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 . "your_key_here"

โœ… 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.4.tar.gz (8.1 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.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: readmegen_cli-0.1.4.tar.gz
  • Upload date:
  • Size: 8.1 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.4.tar.gz
Algorithm Hash digest
SHA256 464398d2eb6231bbb96159e4b5313319a746232bcec62b003dec2f3763f89522
MD5 731fe0218ad20e7c9b42367d894cabde
BLAKE2b-256 0a3548ef62bbc8a71aa415050cc68463954cd31ee9de83a3fe16062d84cf8568

See more details on using hashes here.

File details

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

File metadata

  • Download URL: readmegen_cli-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f66ee1943f07ba9541ba4957bd9edf8c4d5eb6e5bc56025f33cf999171b00b9f
MD5 e36a3f2773acf9387968452e7f4a2dcf
BLAKE2b-256 76ee8ce6487100a0073b681328525d9564416a4611057259f61d8e494c775a23

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