Natural language → shell command using AI models, with optional <...> Enter interception
Project description
akscmd
Natural language → shell command using AI models.
Works as:
akscmd "<create a folder named apple>"→ prints & (optionally) runsmkdir apple- Optional shell hook so typing
<create a folder named apple>and pressing Enter runs the command directly.
Quick start
pip install akscmd
export AKSCMD_API_KEY="YOUR_API_KEY"
export AKSCMD_MODEL="YOUR_MODEL_NAME"
akscmd "<create a folder named apple>" --yes
Configuration
You need to set up two environment variables:
- AKSCMD_API_KEY: Your API key for the AI service
- AKSCMD_MODEL: The model name you want to use
Example:
export AKSCMD_API_KEY="your-api-key-here"
export AKSCMD_MODEL="gpt-4"
Usage
# Basic usage
akscmd "<create a folder named apple>"
# Auto-execute the command
akscmd "<create a folder named apple>" --yes
# Get help
akscmd --help
Development
Developed by Amit Kumar Singh. You can contact him at: aksmlibts@gmail.com
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
akscmd-0.1.1.tar.gz
(5.4 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 akscmd-0.1.1.tar.gz.
File metadata
- Download URL: akscmd-0.1.1.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
972bb34e8517a3b607732ee2f212340da078db6bb90a051a616e8b8888a6ae32
|
|
| MD5 |
588683d7ef69d217668cfa3e27b85790
|
|
| BLAKE2b-256 |
b18559ba39169f92b9b1e6f647a90b19c4762769435c4abd6bdb21238f673cd0
|
File details
Details for the file akscmd-0.1.1-py3-none-any.whl.
File metadata
- Download URL: akscmd-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea95b23b225c8b263aad347d9a7dfe0cbb70e6bf20d250801330bbd10b9400c2
|
|
| MD5 |
ca4c8109014fbed43f773abe4bf21390
|
|
| BLAKE2b-256 |
ba0a38443a8385a9ad9d03bde7b7bcacfc5d88f15f3070303810d701d036916c
|