Metadata-Version: 2.4
Name: qventis-ui
Version: 0.3.0
Summary: Modern desktop UI component library, theme engine, and MySQL/SQLite database integration toolkit for PySide6
Author: Qventis UI Contributors
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/qventis/qventis-ui
Project-URL: Documentation, https://github.com/qventis/qventis-ui#readme
Project-URL: Repository, https://github.com/qventis/qventis-ui
Project-URL: Tracker, https://github.com/qventis/qventis-ui/issues
Keywords: pyside6,qt6,gui,widgets,theme-engine,mysql,sqlite,database-connector,ui-components,telemetry
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Software Development :: Widget Sets
Classifier: Topic :: Database
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: PySide6>=6.5.0
Requires-Dist: openpyxl>=3.1.0
Requires-Dist: python-docx>=0.8.11
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pymysql>=1.0.0; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

# Qventis UI (`qventis-ui`)

[![PyPI version](https://img.shields.io/pypi/v/qventis-ui.svg)](https://pypi.org/project/qventis-ui/)
[![License: Apache-2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Python Version](https://img.shields.io/badge/python-3.9+-brightgreen.svg)](https://www.python.org/downloads/)
[![Qt Version](https://img.shields.io/badge/Qt-6.5+-green.svg)](https://www.qt.io/)
[![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)](https://github.com/qventis/qventis-ui)

A modern desktop UI component library, declarative theme engine, and MySQL/SQLite database connectivity toolkit for **PySide6** (Qt for Python).

---

## Key Features

- **Pre-styled UI Primitives**:
  - `QMetricCard`: Clean summary statistic card with title, large metric value, and accent border.
  - `QStatusBadge`: Pill-shaped status indicator supporting `success`, `warning`, `danger`, and `info` color states.
  - `QSearchField`: Responsive search input with debounced text signals (`debounced_text_changed`) and instant clear button.
  - `QCardTableView`: Table view with pre-configured alternating row colors, padding, and smooth row selection.
- **Declarative Theme Engine**:
  - Instant Qt Style Sheet (QSS) generator with customizable enterprise palettes (`mint`, `corporate-blue`, `graphite-dark`, `emerald`).
- **Database Connectors**:
  - `MySQLConnector`: Connection testing, schema execution, and query helpers for MySQL and MariaDB servers.
  - Tabular schema exporter generating valid MySQL Workbench (InnoDB, utf8mb4) DDL scripts.
- **UI Diagnostics**:
  - Built-in event-loop latency profiler tracking frame intervals and memory consumption.

---

## Installation

```bash
pip install qventis-ui
```

---

## Quick Start

### 1. Interactive Component Showcase

Launch the built-in UI showcase to explore widgets and themes:

```bash
qventis preview
```

### 2. Using UI Components in PySide6

```python
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget
from qventis.theme import get_theme_stylesheet
from qventis.widgets import QMetricCard, QStatusBadge, QSearchField

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("Operations Dashboard")
        self.resize(600, 400)
        
        container = QWidget()
        layout = QVBoxLayout(container)
        
        # Add Metric Card & Status Badge
        layout.addWidget(QMetricCard("Total Revenue", "$48,250", "+12% this month", accent="#2563EB"))
        layout.addWidget(QStatusBadge("ACTIVE SESSION", variant="success"))
        layout.addWidget(QSearchField("Search records..."))
        
        self.setCentralWidget(container)

if __name__ == "__main__":
    app = QApplication(sys.argv)
    app.setStyleSheet(get_theme_stylesheet("corporate-blue"))
    window = MainWindow()
    window.show()
    sys.exit(app.exec())
```

### 3. Testing MySQL Connectivity

Validate connection credentials against a target database server:

```bash
qventis connect --host 192.168.0.5 --port 3306 --user my_user --password my_pass --db my_db
```

---

## CLI Reference

```text
usage: qventis [-h] [--version] {preview,theme,connect,metrics,inspect,bench,export-ddl} ...

Qventis Enterprise UI & Telemetry Framework for PySide6

Commands:
  preview     Launch interactive PySide6 showcase window demonstrating Qventis UI components
  theme       Inspect or export declarative Qt stylesheets and palette variables
  connect     Verify network connectivity and credentials for MySQL / MariaDB server
  metrics     Run local process telemetry and memory profiler diagnostics
  inspect     Inspect relational database schema structure and foreign key constraints
  bench       Execute microsecond UI event-loop latency benchmark
  export-ddl  Export table schema to strict MySQL (InnoDB) or SQLite DDL script
```

---

## License

Qventis UI is open-source software licensed under the **Apache License 2.0**.
Copyright 2026 Qventis UI Contributors.
