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.2.tar.gz
(5.7 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.2.tar.gz.
File metadata
- Download URL: akscmd-0.1.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86488d12c5eb6b605446ae7ce96497769b5b89721eafc74a715f837dbc43bb77
|
|
| MD5 |
f918a65095765114aaf677df28c2d96b
|
|
| BLAKE2b-256 |
cb8e9c10918bdcf7c5c40b60a7ccbff82a654272c43265c24bc805fdeaae6b82
|
File details
Details for the file akscmd-0.1.2-py3-none-any.whl.
File metadata
- Download URL: akscmd-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
715e736bcc334251c7c5b1a17f03f49d9a8909c68fb9bd852e6cac4dabee8987
|
|
| MD5 |
0ce237710bcc6ea5b517108d0e63ab10
|
|
| BLAKE2b-256 |
dfdd2077cc688d63b92a4e7f80f277800b0465b9a6c0863e54f64955844910d8
|