Generate professional README.md files using AI.
Project description
readmegen-cli ๐ ๏ธ๐ โ AI-Powered README Generator
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
- ๐ GitHub: inevitablegs/readmegen-cli
- ๐ฆ PyPI: readmegen-cli on PyPI
- ๐ง Gemini API: https://makersuite.google.com/app/apikey
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
464398d2eb6231bbb96159e4b5313319a746232bcec62b003dec2f3763f89522
|
|
| MD5 |
731fe0218ad20e7c9b42367d894cabde
|
|
| BLAKE2b-256 |
0a3548ef62bbc8a71aa415050cc68463954cd31ee9de83a3fe16062d84cf8568
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f66ee1943f07ba9541ba4957bd9edf8c4d5eb6e5bc56025f33cf999171b00b9f
|
|
| MD5 |
e36a3f2773acf9387968452e7f4a2dcf
|
|
| BLAKE2b-256 |
76ee8ce6487100a0073b681328525d9564416a4611057259f61d8e494c775a23
|