Skip to main content

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

Project description

mkaireadme

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

Description

mkaireadme is a cross-platform Python CLI tool that leverages artificial intelligence to create and maintain high-quality README.md files. By analyzing your project structure and source code, it generates comprehensive documentation with sections for project goals, tech stack, installation, usage, and more. The tool integrates with OpenRouter's API to access state-of-the-art language models, ensuring professional-grade documentation for any project.

Features

  • AI-Powered Generation: Uses advanced language models (OpenRouter) to analyze project context and generate tailored READMEs
  • Cross-Platform Compatibility: Works seamlessly on Windows, macOS, and Linux
  • Smart Updates: Intelligently updates existing READMEs while preserving custom content
  • Customization: Supports project-specific guidance through configuration files
  • License Management: Includes built-in license generation and README integration
  • Model Selection: Browse and choose from multiple AI models
  • Content Budgeting: Efficiently analyzes large projects within token limits

Tech Stack

  • Python 3.9+
  • Typer: Modern CLI framework
  • Rich: Terminal styling and formatting
  • OpenAI: AI integration via OpenRouter
  • python-dotenv: Environment variable management
  • pathspec: Gitignore-style file exclusion
  • PyYAML: Configuration file handling
  • requests: HTTP library for license API
  • build: Package building utilities
  • twine: Package publishing utilities

Installation

Install directly from PyPI:

pip install mkaireadme

Usage

Setup

  1. Set your OpenRouter API key:

    mkaireadme set-key YOUR_OPENROUTER_API_KEY
    
  2. Initialize project configuration (optional):

    mkaireadme init
    
  3. Generate or update LICENSE (recommended):

    mkaireadme license
    

Commands

Generate README

mkaireadme gen --model google/gemini-flash-1.5

Options:

  • --model: AI model to use (e.g., google/gemini-flash-1.5, anthropic/claude-3-haiku)
  • --force-overwrite: Replace existing README without markers
  • --debug: Enable verbose logging

Browse AI Models

# Show recommended models
mkaireadme models

# Search for specific models
mkaireadme models llama

License Management

mkaireadme license

Example Workflow

  1. Set API key:

    mkaireadme set-key sk-or-xxxx
    
  2. Create license:

    mkaireadme license
    
  3. Generate README:

    mkaireadme gen --model google/gemini-flash-1.5
    
  4. Update README later (adds new content between markers):

    mkaireadme gen --model anthropic/claude-3-haiku
    

Configuration

Create .mkaireadme.yml in your project root:

project_goals: "Build a scalable web application"
custom_instructions: "Include performance benchmarks"
exclude:
  - "test/"
  - "*.log"

License

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

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.3.1.tar.gz (8.3 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.3.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mkaireadme-0.3.1.tar.gz
Algorithm Hash digest
SHA256 cc26d96556ef6ab5664357d667278a8143bb024233d033ae3f5c117748e399eb
MD5 c1e4d12c99acd4f2859bd41daa70c31e
BLAKE2b-256 eba7cf80020ce1a684ba30acb049c5430a353a9f7a3c425367b529c619c37050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkaireadme-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6c89782cb5d88e68cbf5954059f90679e24cf6be61e9e80f56d179330a8929
MD5 ddf500999d5276550071701c3ef8358f
BLAKE2b-256 b2a9c95c6dbe29972a4b5542524a458c00dee9a3ff8cb6ec774e666922de6596

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