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
- Clone the repository
git clone https://github.com/whyparkc/llm-cmd-py
cd llm-cmd-py
- Create and activate virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Set up environment variables
Create a
.envfile 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
- Install in development mode
pip install -e .
Usage Example
llm-cmd find all python files in current directory
License
MIT License
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(3.2 kB
view details)
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 llm_cmd_py-0.1.1.tar.gz.
File metadata
- Download URL: llm_cmd_py-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a56b8e44ee76c7b4456db8df5bb5302f373ed383a371fd4292556cd323b8d61
|
|
| MD5 |
748bd63a3519c719e633fd57bc4e7176
|
|
| BLAKE2b-256 |
d899964a3c8d1087f31d3042c231ea25d885fa020ba7e2c3fe2f41d0f761bc24
|
File details
Details for the file llm_cmd_py-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llm_cmd_py-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c49b21ec7d706918a0003fd7cf6f3f2a33d977cb8ea563eba1eeaadb6b8f64
|
|
| MD5 |
0947478cf152fe0798935b0c2a3abe90
|
|
| BLAKE2b-256 |
3b0a251e553ec441306912dcad72f3cdbf9e04134d438d077936783b2e609f87
|