No project description provided
Project description
hashtagAI
hashtagAI is a command-line tool that generates terminal command responses using various providers' language models. It helps users find and execute the right terminal commands by providing clear explanations and ready-to-use commands.
Features
- AI-powered command generation: Get terminal commands from natural language descriptions
- Multi-provider support: Works with different LLM providers
- Interactive mode: Ask follow-up questions and maintain conversation context
- Command execution: Run suggested commands directly from the interface
- Command history: View and recall previous commands and explanations
- Cross-platform support: Works on Linux, macOS, and Windows
Installation
To install the package, run:
pip install hashtagAI
Usage
After installation, you can use the ask command to generate terminal command responses. The ask command takes a natural language description as input and provides a concise explanation and the exact terminal command to accomplish the task.
Examples
Basic usage:
ask How do I update all packages on Fedora?
Output:
#AI Assistant:
Explanation:
To update all packages on your Fedora system, you can use the dnf package manager. The following command will check for updates and install them for all installed packages.
Command:
sudo dnf update
More examples:
ask How do I find large files in my home directory?
ask How can I check CPU temperature on Ubuntu?
ask Create a backup of my Documents folder with date in filename
Interactive Mode
Launch hashtagAI in interactive mode by running:
hashtagai
This will start a conversation where you can ask multiple questions and maintain context.
Configuration
Ensure you have set the required environment variables:
PROVIDER_API_KEY: Your API key for the LLM providerLITELLM_MODEL_ID: The ID of the model to use (optional, default:gemini/gemini-2.0-flash)HASHTAGAI_TYPING_SPEED: Controls the typing animation speed (optional, default:0.001)HASHTAGAI_MAX_HISTORY: Maximum number of interactions to keep in history (optional, default:10)
Example Configuration
# Required
export PROVIDER_API_KEY='YOUR_API_KEY'
# Optional configurations
export LITELLM_MODEL_ID='meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo'
export HASHTAGAI_TYPING_SPEED='0.002'
export HASHTAGAI_MAX_HISTORY='15'
Development
To contribute to this project, follow these steps:
-
Clone the repository:
git clone https://github.com/thanabordeen/hashtagai_terminal_llm.git cd hashtagai_terminal_llm
-
Install development dependencies:
pip install -r requirements-dev.txt
-
Make your changes and test them locally:
python -m hashtagai
-
Submit a pull request with your changes.
License
This project is licensed under the MIT License.
Author
Thanabordee N. (Noun)
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
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 hashtagai-0.3.1.tar.gz.
File metadata
- Download URL: hashtagai-0.3.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f9c15fc067fbb71a1e3c484e4e23bd114eaa1327cfb2d0d364dcaaed0643d63
|
|
| MD5 |
7299112b780a3d0ebd195eb7dd9aa360
|
|
| BLAKE2b-256 |
61def64d8a2fa8b85d0b847a58349b5e6f31328e574537e2cbc05dde1ec774d2
|
File details
Details for the file hashtagai-0.3.1-py3-none-any.whl.
File metadata
- Download URL: hashtagai-0.3.1-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
baff183c241e618ed3c8650a6db2404cdc8272b9e58b806884726c3771464c41
|
|
| MD5 |
5ab654cf75643bdf0b999ad94aa893ed
|
|
| BLAKE2b-256 |
e629a568bb0f92ced1394f5f5de7e0f9274d38b09afb0fb9aa569082a571f0d8
|