Metadata-Version: 2.4
Name: illi-ai-professional
Version: 1.2.6
Summary: ILLI — a local-first personal assistant dashboard for productivity and system tools.
Author: Muhammad Farhan
License-Expression: MIT
Project-URL: Homepage, https://github.com/Farhanillahiclass/illi-ai-assistant
Project-URL: Repository, https://github.com/Farhanillahiclass/illi-ai-assistant
Project-URL: Issues, https://github.com/Farhanillahiclass/illi-ai-assistant/issues
Project-URL: Author, https://www.linkedin.com/in/muhammadfarhanmrs
Keywords: assistant,flask,local-first,productivity,windows
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Office/Business
Requires-Python: <3.13,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Flask<4,>=3.0
Requires-Dist: psutil<8,>=5.9
Requires-Dist: pypdf<8,>=4
Requires-Dist: numpy<2,>=1.24
Requires-Dist: opencv-python<4.10,>=4.8
Provides-Extra: test
Requires-Dist: pytest<10,>=8; extra == "test"
Requires-Dist: build<2,>=1; extra == "test"
Requires-Dist: twine<8,>=5; extra == "test"
Dynamic: license-file

# ILLI AI — Local Personal Assistant

**A privacy-conscious, locally hosted personal assistant by Muhammad Farhan.**

ILLI combines a web dashboard with a Python/Flask backend for personal productivity, system awareness, knowledge tools, and selected desktop actions.

<p align="center">
  <strong>Local-first · Python · Flask · JavaScript · OpenCV</strong>
</p>

## Overview

ILLI is designed to run on your own computer. Its dashboard provides a single place to interact with supported assistant features while the Python backend handles local data and system integrations.

### Capabilities

| Area | What is included |
|---|---|
| Dashboard | Browser-based control panel and live status |
| Assistant chat | Command and intent handling through the local backend |
| Productivity | Tasks, habits, goals, notes, and focus timer |
| System monitor | CPU, memory, disk, battery, and process information (when supported) |
| Vision | Optional webcam-based face detection using OpenCV |
| Media | Supported operating-system media controls |
| Personal memory | Local JSON-backed preferences and notes |
| Islamic tools | Prayer-time panel, reminders, and knowledge content |
| Knowledge | Local PDF text extraction and searchable knowledge indexes |

> **Feature availability:** Some capabilities depend on your operating system, permissions, installed optional packages, camera hardware, and network availability. Prayer-time retrieval can use the AlAdhan online service; offline fallback times are placeholders and should not be treated as accurate prayer times.

## Screenshots

No screenshots are included because verified application captures are not available in this repository.

## Requirements

- Windows, macOS, or Linux
- Python 3.10, 3.11, or 3.12
- pip
- Optional: a working webcam for Vision
- Optional: OS-specific media-control support

## Quick start

### Install from PyPI

```bat
python -m pip install illi-ai-professional
illi-ai
```

The `illi-ai` command starts ILLI and opens the local dashboard at **http://127.0.0.1:5000**.

To run directly as a Python module:

```bat
python -m illi_ai
```

### Install from a source checkout

```bat
python -m pip install .
illi-ai
```

### Windows

```bash
cd illi-ai-assistant
python -m venv .venv
.venv\Scripts\activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python app.py
```

Alternatively, run `run_illi.bat` from File Explorer or Command Prompt. It creates a virtual environment and installs the runtime dependencies if needed.

For PowerShell, activate the environment with:

```powershell
.\.venv\Scripts\Activate.ps1
```

### macOS / Linux

```bash
cd illi-ai-assistant
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python app.py
```

### Tests

Run `RUN_ALL_TESTS.bat` on Windows. For a manual test run, install the test extra with `python -m pip install -e ".[test]"`, then run `python -m pytest -q`.

### Windows Desktop shortcut

After installing ILLI, run the following from the same Python environment:

```bat
illi-ai --setup-shortcut
```

This creates or repairs the **ILLI AI** shortcut on your Windows Desktop and uses the bundled ILLI icon. Remove only the shortcut with `illi-ai --remove-shortcut`. Reinstall or repair it with `illi-ai --repair-shortcut`.

## Optional: repair OpenCV on Windows

If OpenCV fails to import, close applications using the camera and run:

```bash
python -m pip install --force-reinstall "numpy<2" "opencv-python>=4.8,<4.10"
```

Then restart ILLI.

## Local data and privacy

- Installed runtime data is stored in `~/.illi` (on Windows, `%USERPROFILE%\.illi`); source-checkout data is stored in the project `memory/` and `data/` folders.
- Personal chat history, health entries, notes, and uploaded documents are intentionally excluded from this public source package.
- Do not commit personal records, API keys, credentials, private documents, or local environment folders.
- The dashboard uses externally hosted font/icon assets when an internet connection is available.
- The Flask server is configured to bind to `127.0.0.1`; do not expose it to a public network without adding authentication and a security review.
- `pip uninstall illi-ai-professional` leaves ILLI's user data untouched. Remove the Desktop shortcut separately before uninstalling if you no longer want it.

## Project structure

```text
illi-ai-assistant/
├── app.py                      # Source-checkout Flask entry point
├── main.py                     # Command-line overview
├── config/settings.json        # Default application settings
├── core/illi_core.py           # Core assistant
├── dashboard/                  # Dashboard assets for source checkout
├── modules/                    # Tasks, system monitoring, Islamic tools
├── memory/
│   ├── founder.json            # Public author profile
│   ├── knowledge/              # Built-in knowledge resources
│   └── training/               # Intent and FAQ dataset
├── scripts/                    # User-facing utility scripts
├── src/illi_ai/                # Installable package and bundled dashboard
├── tests/
├── pyproject.toml
└── requirements.txt
```

## Training data

The included intent/FAQ dataset is a lightweight local intent and response resource, not a foundation-model fine-tune.

```bash
python scripts/train_illi.py
```

This regenerates the local training index. Review dataset contents and licensing before adding external material.

## API

The Flask backend exposes local endpoints for dashboard data and supported actions. See the route definitions in `app.py` for the current implementation. The API is intended for local use and is not an authenticated public service.

## Known limitations

- ILLI is not a general-purpose, ChatGPT-equivalent language model.
- Some commands rely on operating-system-specific integrations.
- Webcam features require a compatible camera and user permission.
- Prayer times require a configured city and a reliable source; fallback values are illustrative only.
- No claim of guaranteed accuracy, uninterrupted operation, or production-grade security is made.
- Desktop shortcut creation is Windows-only and uses Windows PowerShell; the dashboard itself is available cross-platform.
- Shutdown and restart API requests are confirmation-gated but do not execute system power actions.

## Contributing

Issues and pull requests are welcome. Please include:
1. A clear description of the problem or proposed change.
2. Steps to reproduce bugs.
3. Operating system and Python version.
4. Relevant logs with personal information and secrets removed.

## Author

**Muhammad Farhan**

- [GitHub](https://github.com/Farhanillahiclass)
- [LinkedIn](https://www.linkedin.com/in/muhammadfarhanmrs)
- [YouTube](https://www.youtube.com/@FarhanMRSDeveloper)
- [MRS](https://mrsplatform.tech)

---

*Built with a local-first mindset.*
