Metadata-Version: 2.4
Name: OmniAntidb
Version: 1.0.0
Summary: Database layer for OmniAnti Antivirus — Windows 10 & 11
Author: OmniAnti
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: requires-python

# OmniAntiDB

Database layer for **OmniAnti Antivirus** — supports Windows 10 & Windows 11 editions.

## Install

```bash
pip install OmniAntidb
```

## Quick Start

```python
from omnianti_db import OmniAntiDB

db = OmniAntiDB()  # auto-saves to %APPDATA%\OmniAnti\omnianti.db

# Start a scan
scan_id = db.start_scan(scan_type="quick")

# Log a threat
db.log_threat(scan_id=scan_id, name="Malware.KnownHash",
              path="C:\\Temp\\bad.exe", severity="HIGH")

# Finish scan
db.finish_scan(scan_id=scan_id, files_scanned=1200, threats_found=1)

# Quarantine a file
db.quarantine_file(path="C:\\Temp\\bad.exe", threat_name="Malware.KnownHash")

# Dashboard stats
print(db.get_dashboard_stats())

# Export to JSON
db.export_json()
```

## What It Stores

| Table       | Description                        |
|-------------|------------------------------------|
| scans       | Scan history, duration, file count |
| threats     | Every detected threat              |
| quarantine  | Quarantined file records           |
| settings    | App preferences & config           |
| logs        | Real-time scan log entries         |

## Database Location

Automatically stored at:
```
C:\Users\<YourName>\AppData\Roaming\OmniAnti\omnianti.db
```

Or specify a custom path:
```python
db = OmniAntiDB(db_path="D:\\MyFolder\\omnianti.db")
```
