No project description provided
Project description
ai_terminal
A magical and interactive terminal app where you can ask questions to an AI, set alarms on your device, open software, and get answers in the cutest way possible! It features text-to-speech and a delightful loading animation. Whether you need a quick answer or want to set reminders for your tasks, this app has it all!
Features
- AI Chat: Ask the AI any question and receive an answer in the terminal.
- Text-to-Speech (TTS): Listen to the AI's response through a text-to-speech engine.
- Magical Loading Animation: Watch a cute animation while the AI is processing your question.
- Set Alarms: Set alarms on macOS using Apple's Reminders app.
- Open Software: Open any software directly from the terminal.
Requirements
- Python 3.x
- Dependencies:
requests: For making API calls to the AI service.json: For handling JSON data.argparse: For handling command-line arguments.subprocess: For running system commands to open software or set alarms.pyttsx3: For text-to-speech (TTS) functionality.termcolor: For colorful terminal output.rich: For enhanced console output and spinner.concurrent.futures: For threading and concurrency.os,sys: For platform-specific functionalities (macOS, Linux, Windows).
Installation
You can easily install the ai_terminal app via PyPI. To install, run the following command:
pip install hc-ai-terminal
This will install the app and its required dependencies.
Usage
AI Chat
To ask a question to the AI, simply run the app:
ai "What is the meaning of life?"
The app will show a cute loading animation and provide an answer after processing. It also uses text-to-speech (TTS) to read out the answer.
Set an Alarm
To set an alarm on macOS, use the --alarm flag followed by the time in HH:MM format (24-hour):
ai --alarm 08:00
This will create an alarm using the Reminders app on macOS. The app will speak the time when the alarm is set.
Open a Software Application
To open an application (e.g., "Safari" on macOS), use the --open flag:
ai --open "Safari"
This will attempt to open the specified application, depending on your operating system.
Combined Command
You can combine multiple commands in one run:
ai "What is the weather today?" --alarm 08:00 --open "Safari"
This will ask a question, set an alarm, and open Safari all at once.
Interactive Mode
If no arguments are provided, the app will enter interactive mode, where you can ask questions and get answers directly.
Platforms Supported
- macOS: Alarm setting is supported through the AppleScript integration with the Reminders app.
- Linux/Windows: Alarm setting is not supported, but other features work.
- Software opening is supported on macOS, Linux, and Windows.
Known Issues
- TTS may not work properly on all platforms. If text-to-speech fails, the app falls back to a simple printed message.
- Alarm setting only works on macOS.
Contributing
Feel free to fork this project and submit pull requests. If you encounter any issues, open an issue on GitHub.
License
This project is open source and available under the MIT License.
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 hc_ai_terminal-0.5.tar.gz.
File metadata
- Download URL: hc_ai_terminal-0.5.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65f906154cce3f98aa14ff48f59014533454b2ad0f91943664c653cf7d344c1c
|
|
| MD5 |
116054141147e986513b9d64dfcc4a29
|
|
| BLAKE2b-256 |
f939fe9af38e3a2eaaf5d32721f49bcb133819b6e1a5aed660149b71889384b9
|
File details
Details for the file hc_ai_terminal-0.5-py3-none-any.whl.
File metadata
- Download URL: hc_ai_terminal-0.5-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba4ae6c0921b4a21dcd218c12b4d7e848b3ffdeb44027d28124d01f406b65d5d
|
|
| MD5 |
98f67b9d7855a6687707f0e6ae5d6e4f
|
|
| BLAKE2b-256 |
b15ef0fe2256fa6fe77efb7b906c2171daab73db0b94c707964a31d9087eed68
|