Skip to main content

Python CLI tool that leverages LLMs to generate and execute shell commands through natural language input

Project description

LLM-CMD Python Version

Introduction

This is the Python version of LLM-CMD, a command-line tool that generates and executes system commands using natural language.

Getting Started

Prerequisites

  • Python 3.9 or higher
  • pip or poetry

Installation

  1. Clone the repository
git clone https://github.com/whyparkc/llm-cmd-py    
cd llm-cmd-py
  1. Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt
  1. Set up environment variables Create a .env file and set the following variables:
LLM_ENDPOINT="https://api.openai.com/v1"
LLM_API_KEY="your-api-key-here"
LLM_MODEL="gpt-4o-mini"
LLM_TEMPERATURE=0.7
LLM_MAX_TOKENS=100
  1. Install in development mode
pip install -e .

Usage Example

llm-cmd find all python files in current directory

License

MIT License

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

llm_cmd_py-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

llm_cmd_py-0.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file llm_cmd_py-0.1.0.tar.gz.

File metadata

  • Download URL: llm_cmd_py-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for llm_cmd_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0c2fef056667091f7623800ce8058247f7912e92e2a740c687fbebeb65441fd8
MD5 25f8e0616f0900cc6395f8a51a59cef7
BLAKE2b-256 5d2033322601f1684373e29d028cc9ded29e470bcce3811e4c0bac5a2e69c06f

See more details on using hashes here.

File details

Details for the file llm_cmd_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: llm_cmd_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for llm_cmd_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32d51d280996e7758b8c58a9ea581e4d598306a5e8f8de6bd9e6440bd691bb0a
MD5 a909d4bc47fa1b5c29378263db4999e3
BLAKE2b-256 36eb36e030c399e0728c5248436189ba3d3c1eeb9f92db5f616f375ae52ae321

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