# Terminal-AI

   
<!--  -->
  
<!--  -->
A zero-shot AI assistant in the terminal, backended by the *GROQ AI*, for blazing fast responses. The **free** API key from *GROQ* can be obtained [here](https://console.groq.com/keys)
## Installation
To install protai, simply run the following command in your terminal:
```bash
pip install --upgrade protai
```
## Usage
To use this application, simply run the following command in your terminal:
```bash
protai <query>
```
*For example:*

>[!Note]
> On first run you will be prompted to enter your **free** *Groq AI* API key. You can get one at the [**Groq AI website**](https://console.groq.com/keys).
>[!IMPORTANT]
> You need to have a _**valid Groq AI API key**_ to use this application.
## Development
The application is using the _**llama-3.1-8b-instant**_ model for its instant inference, as that has the fastest response time.
The interactive version is using the **llama-3.3-70b-versatile** for its 0-shot inference.
If you wish to develop for this application, you can clone the repository and install the dependencies using the scripts given:
```bash
git clone https://github.com/protik09/terminal-ai.git
cd terminal-ai
./activate_venv.sh
```
or
```powershell
git clone https://github.com/protik09/terminal-ai.git
cd terminal-ai
.\activate_venv.ps1
```
To generate the wheel and upload to PyPI, we use the following command:
```bash
python setup.py upload
```
> [!IMPORTANT]
> Only the current maintainer has access to the [**PyPI**](https://pypi.org/project/protai/) repository API key. If you wish to contribute, please fork the repository and submit a pull request.
### Prerequisites
>[!NOTE]
>* Python 3.10 or later 🐍
>* Groq AI API key (available at [Groq AI website](https://console.groq.com/keys))
### Program Flow Chart

### Contributing
Contributions are welcome! If you'd like to contribute to this application, please fork the repository and submit a pull request.
>[!WARNING]
> WSL2 is not supported for development. Please use a native Linux or Windows environment. There are issues with keyring access in WSL2.
## License
This application is licensed under the MIT License. See [LICENSE](LICENSE) for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/protik09/terminal-ai",
"name": "protai",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10.0",
"maintainer_email": null,
"keywords": null,
"author": "Protik Banerji",
"author_email": "protik09@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/9d/50/88ec3ee7d6ae91bfb6ed40ec2efd66a655c26b7219d4ac01a3248a7abd62/protai-1.0.3.tar.gz",
"platform": null,
"description": "\r\n# Terminal-AI\r\n\r\n\r\n\r\n   \r\n<!--  -->\r\n\r\n  \r\n\r\n<!--  -->\r\n\r\nA zero-shot AI assistant in the terminal, backended by the *GROQ AI*, for blazing fast responses. The **free** API key from *GROQ* can be obtained [here](https://console.groq.com/keys)\r\n\r\n## Installation\r\n\r\nTo install protai, simply run the following command in your terminal:\r\n\r\n```bash\r\npip install --upgrade protai\r\n```\r\n\r\n## Usage\r\n\r\nTo use this application, simply run the following command in your terminal:\r\n\r\n```bash\r\nprotai <query>\r\n```\r\n\r\n*For example:*\r\n\r\n\r\n\r\n\r\n\r\n>[!Note]\r\n> On first run you will be prompted to enter your **free** *Groq AI* API key. You can get one at the [**Groq AI website**](https://console.groq.com/keys).\r\n\r\n>[!IMPORTANT]\r\n> You need to have a _**valid Groq AI API key**_ to use this application.\r\n\r\n## Development\r\n\r\nThe application is using the _**llama-3.1-8b-instant**_ model for its instant inference, as that has the fastest response time.\r\nThe interactive version is using the **llama-3.3-70b-versatile** for its 0-shot inference.\r\n\r\nIf you wish to develop for this application, you can clone the repository and install the dependencies using the scripts given:\r\n\r\n```bash\r\ngit clone https://github.com/protik09/terminal-ai.git\r\ncd terminal-ai\r\n./activate_venv.sh\r\n```\r\n\r\nor\r\n\r\n```powershell\r\ngit clone https://github.com/protik09/terminal-ai.git\r\ncd terminal-ai\r\n.\\activate_venv.ps1\r\n```\r\n\r\nTo generate the wheel and upload to PyPI, we use the following command:\r\n\r\n```bash\r\npython setup.py upload\r\n```\r\n\r\n> [!IMPORTANT]\r\n> Only the current maintainer has access to the [**PyPI**](https://pypi.org/project/protai/) repository API key. If you wish to contribute, please fork the repository and submit a pull request.\r\n\r\n### Prerequisites\r\n\r\n>[!NOTE]\r\n>* Python 3.10 or later \ud83d\udc0d\r\n>* Groq AI API key (available at [Groq AI website](https://console.groq.com/keys))\r\n\r\n### Program Flow Chart\r\n\r\n\r\n\r\n### Contributing\r\n\r\nContributions are welcome! If you'd like to contribute to this application, please fork the repository and submit a pull request.\r\n>[!WARNING]\r\n> WSL2 is not supported for development. Please use a native Linux or Windows environment. There are issues with keyring access in WSL2.\r\n\r\n## License\r\n\r\nThis application is licensed under the MIT License. See [LICENSE](LICENSE) for details.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A useful 0-Shot AI in the terminal",
"version": "1.0.3",
"project_urls": {
"Homepage": "https://github.com/protik09/terminal-ai"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6944fe6f9a71092f2680733d1ed2236d18a9ef768551e272a66d6610d10cfac8",
"md5": "126e12ab5852111146ccb90ca0905374",
"sha256": "e092d06f0178d16c60f5700289aa83b6c2dbb6e1e681b63cd4a5cfbc843068d1"
},
"downloads": -1,
"filename": "protai-1.0.3-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "126e12ab5852111146ccb90ca0905374",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.10.0",
"size": 12489,
"upload_time": "2025-02-26T05:04:17",
"upload_time_iso_8601": "2025-02-26T05:04:17.006611Z",
"url": "https://files.pythonhosted.org/packages/69/44/fe6f9a71092f2680733d1ed2236d18a9ef768551e272a66d6610d10cfac8/protai-1.0.3-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9d5088ec3ee7d6ae91bfb6ed40ec2efd66a655c26b7219d4ac01a3248a7abd62",
"md5": "68b71c8e7943656705e1a1414d5f2ab8",
"sha256": "4ebb7efeaad88f0b402bb5e422d9670a44020cdca1e9059f259645ba15397aae"
},
"downloads": -1,
"filename": "protai-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "68b71c8e7943656705e1a1414d5f2ab8",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10.0",
"size": 14716,
"upload_time": "2025-02-26T05:04:18",
"upload_time_iso_8601": "2025-02-26T05:04:18.889619Z",
"url": "https://files.pythonhosted.org/packages/9d/50/88ec3ee7d6ae91bfb6ed40ec2efd66a655c26b7219d4ac01a3248a7abd62/protai-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-26 05:04:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "protik09",
"github_project": "terminal-ai",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "setuptools",
"specs": []
},
{
"name": "wheel",
"specs": []
},
{
"name": "rich",
"specs": []
},
{
"name": "keyring",
"specs": []
},
{
"name": "prompt-toolkit",
"specs": []
},
{
"name": "requests",
"specs": []
},
{
"name": "orjson",
"specs": []
},
{
"name": "tiktoken",
"specs": []
}
],
"lcname": "protai"
}