PyMind
PyiMAi is a lightweight AI-powered CLI tool that allows you to interact with an AI model directly from your terminal, with optional image support.
🚀 Features
- 💬 Chat with AI from your terminal
- 🖼️ Send images along with prompts
- ☁️ Upload images and get public URLs
- ⚡ Simple CLI interface
- 🧠 Works with or without images
- 📦 Ready to use as a Python library or CLI tool
📦 Installation
- Clone the project:
git clone https://github.com/DevZ44d/PyiMAi.git
- Via PyPi
pip install pyimai -U
🧠 Usage Example (Class Ai)
- Chatting with Artificial Intelligence (AI). I
import asyncio
from pyimai import Ask
async def main():
prompt = Ask(
prompt="Hello, what is this?",
filepath=["download.jpg"]
)
print(await prompt.chat())
if __name__ == "__main__":
asyncio.run(main())
- Uploading Image Online .
import asyncio
from pyimai import Upload
async def main():
uploader = Upload(
filepaths=["download.jpg"], ## you can add multi photos (required)
expiration=15552000, ## automatically deleted after a certain time (in seconds, 60-15552000). (optional)
key= "" ## i default added one, so delete this argument (optional)
)
print(await uploader.get_info())
if __name__ == "__main__":
asyncio.run(main())
Example response (Class Ai) (JSON)
{
"request": "Hello, what is this ? and solve it .",
"response": "This is a Math Olympiad question asking to solve the equation:\n\na^3 + a^2 = 36\n\nWe need to find the value of a that satisfies this equation.\n\nLet's solve it step-by-step:\n\n1. Rewrite the equation:\na^3 + a^2 = 36\n\n2. Factor out a^2:\na^2(a + 1) = 36\n\n3. Now, we look for integer values of a that satisfy this equation because Math Olympiad problems often expect integer or simple rational solutions.\n\nTry a = 2:\n2^2 × (2 + 1) = 4 × 3 = 12 ≠ 36\n\nTry a = 3:\n3^2 × (3 + 1) = 9 × 4 = 36\n\nThis works perfectly.\n\nSo, a = 3 is a solution.\n\nAnswer:\na = 3"
}
Example response (Class Upload) (JSON)
[
{
"data": {
"delete_url": "https://ibb.co/twK1wYrW/db713ad7cde63f41189c589710396be2",
"display_url": "https://i.ibb.co/MySJyP03/download.jpg",
"expiration": 15552000,
"height": 168,
"id": "twK1wYrW",
"image": {
"extension": "jpg",
"filename": "download.jpg",
"mime": "image/jpeg",
"name": "download",
"url": "https://i.ibb.co/MySJyP03/download.jpg"
},
"size": 7895,
"thumb": {
"extension": "jpg",
"filename": "download.jpg",
"mime": "image/jpeg",
"name": "download",
"url": "https://i.ibb.co/twK1wYrW/download.jpg"
},
"time": 1765918544,
"title": "download",
"url": "https://i.ibb.co/MySJyP03/download.jpg",
"url_viewer": "https://ibb.co/twK1wYrW",
"width": 299
},
"status": 200,
"success": true
}
]
Class Terminal 🧠
pyimai -[OPTIONS] "[FOR-OPTION]"
Arguments: - Description:
-p, --prompt Send a prompt to the AI
-f, --filepath Image path (optional)
-u, --upload Upload image only
-e, --expiration default = 600 , Image expiration time (seconds)
-k, --key default i added one, The API key.
-v, --version Show version
-h, --help Show help
🚀 Usage (Class Terminal)
- 🔹Send a normal text prompt (no image required):
pyimai -p "hello"
- 🔹Ask the AI about an image:
pyimai -p "what is this?" -f "photo.jpg" # image must be in directory
- 🔹 Upload an image and get its public URL:
pyimai -u "photo.jpg"
- 🔹 Show version:
pyimai -v
- 🔹 Show help:
pyimai -h
💬 Help & Support .
- Follow updates via the Telegram Channel.
- For general questions and help, join our Telegram chat.
Metadata
Release files for PyiMAi 7.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyimai-7.0.0.tar.gz | 9.3 kB | Without provenance | Details for pyimai-7.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyimai-7.0.0-py3-none-any.whl | Python 3 | none | any | Details for pyimai-7.0.0-py3-none-any.whl |
Total release size: 20.2 kB
Release files / pyimai-7.0.0.tar.gz
| Download URL | pyimai-7.0.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0abd84d184b85efe46cd8fb8ac913324bc73fd792e21d61506e366e7cd2614c
|
|
BLAKE2b-256 checksum How to use checksums |
1519c7c3ea762b3289e101a73e71d97acd25a676ab542b7414fd861887f7ecfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Release files / pyimai-7.0.0-py3-none-any.whl
| Download URL | pyimai-7.0.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da2dcfb118d351a874c94da6c813ff591f9b45ceee86c69c8752f57bf5f77987
|
|
BLAKE2b-256 checksum How to use checksums |
1409312780bf907524faba278b24bcf32e711c2970da0d495ed4a88c2a575260
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.0
|
Security for PyiMAi 7.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.