AIPATT: AI Powered Assistant Tool for Terminals
Project description
AIPATT
A versatile terminal-based AI Powered Assistant Tool.
Table of Contents
About The Project
AIPATT is an AI-powered Assistance Tool for Terminals designed to streamline your workflow by providing tools to generate code, execute shell commands, retrieve and summarize information from Google, and engage in interactive chats.
Here's why:
- Boost productivity: AIPATT helps automate repetitive tasks like coding, information retrieval, and system commands right from the terminal.
- Easy integration: Integrates seamlessly with your command-line environment, making it a powerful addition to your development toolkit.
- Versatile: Whether you're coding, querying data, or managing system tasks, AIPATT adapts to your needs.
AIPATT is built with an emphasis on simplicity, power, and flexibility, enabling developers and power users to get things done faster and smarter.
Built With
These are the major frameworks and libraries used to build AIPATT:
Getting Started
To get a local copy of AIPATT up and running, follow these steps.
Prerequisites
Before installing and using AIPATT, ensure you have the following installed:
- Python 3.10+ - Ensure Python is installed on your system. You can download it from here.
- Ollama - To run the language models, you need to install Ollama. You can get Ollama from their official site.
-
Once installed, you can run a model like
llama3.2using:ollama run llama3.2
-
You can explore other models available on Ollama's model library that supports tools calling.
-
Installation
Once the prerequisites are installed, follow these steps to install AIPATT:
-
Install AIPATT via pip:
pip install aipatt
-
After the installation, you can start using AIPATT directly in your terminal by running:
aipatt
Configuration
The first time you run AIPATT, you will need to configure a few settings. You can either use the default settings or customize them as per your needs. Below are the configuration options you'll need to provide:
DATABASE_PATH: Default value is available, but you can specify your own database path.DEFAULT_MODEL: Default model is set, but you can change it to any available model in Ollama.OPENWEATHERMAP_API_KEY: You need to get your API key from OpenWeatherMap.GOOGLE_SEARCH_URL: The default Google search URL is set, but you can override it.GOOGLE_CSE_ID: Get your Custom Search Engine ID from Google CSE.GOOGLE_API_KEY: Get your Google API Key from Google Cloud Console.SMTP_SERVER: Default is set for Gmail, but you can configure your own SMTP server.PORT: Default is set for Gmail. If using a different SMTP server, you need to provide the correct port.USERNAME: Your email address or username for the SMTP server.PASSWORD: Your email password or an app-specific password if using Gmail.
Note: When you first run AIPATT, it will ask you to enter these configuration values. You can also manually edit the .aipatt.env file that is created in the home directory to modify these settings.
Usage
Here are some useful examples of how you can use AIPATT to perform different tasks. Each command can be run directly in your terminal. For more details on the available commands, use the -h or --help option.
To see all available options, use:
aipatt -h
Available Commands
Generate Code: Use this to generate code based on your input query.
aipatt -c "Write a Python script for Fibonacci series"
Chat: Engage in a continuous conversation with the AI.
aipatt -ch
YouTube Search: Search and play YouTube videos directly from the terminal.
aipatt -y "Top Python tutorials"
Shell Command Generation: Generate and execute shell commands based on a query.
aipatt -s "How to update my system?"
Mail Composer: Compose and send an email using AI.
aipatt -m "Send email to example@gmail.com, Meeting at 10 AM"
Google Search and Summarize: Search on Google and get a summarized answer.
aipatt -gs "What is the capital of France?"
Update Configuration: Use this command to update your configuration settings.
aipatt -u
Clear Memory: Clear the entire chat memory.
aipatt -cm
Version Info: Get the version of AIPATT installed.
aipatt -v
Help: Display the help message with all available options.
aipatt -h
Example Commands
Ask a Question: Query the AI to answer questions directly:
aipatt "What is internet?"
Search Latest News About AI: Use AIPATT to stay updated with the latest AI news:
aipatt "Latest news about AI"
Search and Play YouTube Videos: Search for specific videos on YouTube and play them:
aipatt -y "Top Python tutorials"
Generate Shell Command: Run a query and generate a shell command, or execute a script:
aipatt -s "How to update my system?"
Summarize Google Search Results: Use AIPATT to search Google and get a summary of the results:
aipatt -gs "What is the capital of France?"
Current Weather Conditions: Get the weather report of a city:
aipatt "Current Weather Condition of New York"
Generate Code: Generate code for a common task like a Fibonacci series:
aipatt -c "Write a Python script for Fibonacci series"
Send an Email: Compose and send an email using AI:
aipatt -m "Send email to example@gmail.com, Meeting at 10 AM"
Explain Shell Script: You can even pipe a shell script into AIPATT and get an explanation of the code:
cat install.sh | aipatt "Explain the code"
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
Steps to Contribute
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See CONTRIBUTING.md for more information.
License
Distributed under the GNU AGPLv3 License. See LICENSE for more information.
Contact
Author: Somesh Sharma
| AIPATT | PyPI Link |
| Somesh Sharma | |
| Somesh Sharma | |
| someshs.ce@gmail.com |
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 aipatt-1.0.4.tar.gz.
File metadata
- Download URL: aipatt-1.0.4.tar.gz
- Upload date:
- Size: 97.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0532db99ebab3a2322bac5bd0e8549c22d6f7839f51a50b988d88f1946399e3
|
|
| MD5 |
50115cbb6c2c7721c0b270f7ffc6036c
|
|
| BLAKE2b-256 |
58d405a791b953a1fa44d6600eb6f43164fcff5a69bed447ae317188592a73ee
|
Provenance
The following attestation bundles were made for aipatt-1.0.4.tar.gz:
Publisher:
publish-aipatt-python-package.yml on someshsce/aipatt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aipatt-1.0.4.tar.gz -
Subject digest:
f0532db99ebab3a2322bac5bd0e8549c22d6f7839f51a50b988d88f1946399e3 - Sigstore transparency entry: 153105230
- Sigstore integration time:
-
Permalink:
someshsce/aipatt@01619d0dcd8db7d22cac59045ac8c279b508605b -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/someshsce
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-aipatt-python-package.yml@01619d0dcd8db7d22cac59045ac8c279b508605b -
Trigger Event:
release
-
Statement type:
File details
Details for the file aipatt-1.0.4-py3-none-any.whl.
File metadata
- Download URL: aipatt-1.0.4-py3-none-any.whl
- Upload date:
- Size: 42.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65b5f68e04b8473a08c88a6ca572a830f2c2a5cb04bffcf93c5388fefe1045f4
|
|
| MD5 |
0a3e01ab43ff525c39d1916146a2daf0
|
|
| BLAKE2b-256 |
616feccb59e94ba33c79f7c3d71d99095b9af0831042f3a319c8d7f886046f7c
|
Provenance
The following attestation bundles were made for aipatt-1.0.4-py3-none-any.whl:
Publisher:
publish-aipatt-python-package.yml on someshsce/aipatt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aipatt-1.0.4-py3-none-any.whl -
Subject digest:
65b5f68e04b8473a08c88a6ca572a830f2c2a5cb04bffcf93c5388fefe1045f4 - Sigstore transparency entry: 153105231
- Sigstore integration time:
-
Permalink:
someshsce/aipatt@01619d0dcd8db7d22cac59045ac8c279b508605b -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/someshsce
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-aipatt-python-package.yml@01619d0dcd8db7d22cac59045ac8c279b508605b -
Trigger Event:
release
-
Statement type: