Skip to main content

An AI-powered CLI to generate professional README.md files.

Project description

mkaireadme

License: MIT

An AI-powered CLI tool to generate professional README.md files using OpenRouter's language models.

🔍 Overview

mkaireadme analyzes your project structure and source code to generate comprehensive README.md files tailored to your project. It supports smart updates, custom configuration, and integrates with OpenRouter's diverse model ecosystem.

🛠️ Tech Stack

  • Language: Python 3.9+
  • CLI Framework: Typer
  • Terminal UI: Rich
  • AI Provider: OpenRouter (OpenAI client)
  • Configuration: YAML (.mkaireadme.yml)
  • Environment: dotenv
  • File Processing: pathspec, Pathlib

📦 Installation

Install the package using pip:

pip install mkaireadme

🚀 Usage

1. Initialize Configuration

Create a .mkaireadme.yml configuration file:

mkaireadme init

2. Set OpenRouter API Key

Configure your API key:

mkaireadme set-key YOUR_OPENROUTER_API_KEY

3. Explore Available Models

List recommended models or search specific ones:

# Show recommended models
mkaireadme models

# Search for models
mkaireadme models llama

4. Generate README

Create or update your project's README:

# Basic generation
mkaireadme gen --model google/gemini-flash-1.5

# Force overwrite existing README
mkaireadme gen --model anthropic/claude-3-haiku --force-overwrite

# Enable debug output
mkaireadme gen --model mistralai/mistral-7b-instruct --debug

⚙️ Configuration

Edit .mkaireadme.yml to customize README generation:

project_goals: "A Python CLI tool for generating professional README files"
custom_instructions: "Emphasize AI integration and cross-platform compatibility"
exclude:
  - "*.tmp"
  - "tests/"

📖 Features

  • Smart Updates: Preserves custom content between generations using HTML markers
  • Project Analysis: Reads source files (Python, JS, TOML, etc.) for context
  • Model Flexibility: Compatible with all OpenRouter-supported models
  • Git Integration: Respects .gitignore patterns
  • Error Handling: Robust API error management with user-friendly messages

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 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

mkaireadme-0.1.4.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

mkaireadme-0.1.4-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkaireadme-0.1.4.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mkaireadme-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bcd0c69bef395255b55c0b8ed6d537f8a9d650f5f8ade07564f59fe6fc1c5942
MD5 81728d6260fffed509f9ff7a28e99b70
BLAKE2b-256 9ac153601bd2ca1254910457e9c006f3c47ddb1f706c556b9d4876433c79a0c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkaireadme-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for mkaireadme-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd1133aad00eebbe3126a63910a72db060f7488b5433eeb9116141ad8c9befab
MD5 86af8bb11d6ae94623fb5e5d1a580163
BLAKE2b-256 4ac987294984a2ba84bce3baf65d4a31bf97f934f97d24d83fba567ff5a811e3

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