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
Metadata
Release files for llm-cmd-py 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_cmd_py-0.1.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_cmd_py-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / llm_cmd_py-0.1.1.tar.gz
| Download URL | llm_cmd_py-0.1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a56b8e44ee76c7b4456db8df5bb5302f373ed383a371fd4292556cd323b8d61
|
|
BLAKE2b-256 checksum How to use checksums |
d899964a3c8d1087f31d3042c231ea25d885fa020ba7e2c3fe2f41d0f761bc24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / llm_cmd_py-0.1.1-py3-none-any.whl
| Download URL | llm_cmd_py-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3c49b21ec7d706918a0003fd7cf6f3f2a33d977cb8ea563eba1eeaadb6b8f64
|
|
BLAKE2b-256 checksum How to use checksums |
3b0a251e553ec441306912dcad72f3cdbf9e04134d438d077936783b2e609f87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|