Metadata-Version: 2.4
Name: qventis-ui
Version: 0.4.0
Summary: Enterprise Desktop Application Framework for PySide6: Declarative UI components, MySQL/SQLite database abstraction, data ingestion, business rules engine, and QA audit reporting
Author: Qventis Platform Engineering
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,rad-framework,scaffolding,data-ingestion,qa-reporting
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/)

Enterprise Rapid Application Development (RAD) Framework and UI component suite for **PySide6** (Qt for Python).

Qventis provides enterprise desktop scaffolding, declarative Qt styling, relational database connectors (MySQL & SQLite), automated data ingestion from spreadsheets, and QA test execution reporting.

---

## Key Capabilities

1. **Declarative UI Component Suite**:
   - `QMetricCard`: Clean summary statistic card with trend indicators and accent borders.
   - `QStatusBadge`: Pill-shaped badge component supporting `success`, `warning`, `danger`, and `info` palettes.
   - `QSearchField`: 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.

2. **Enterprise Theme Engine**:
   - Declarative Qt Style Sheet (QSS) generator with customizable enterprise palettes (`mint`, `corporate-blue`, `graphite-dark`, `emerald`).

3. **Relational Database Connectivity & Migration**:
   - `MySQLConnector`: Connection validation, schema migration, and pooling for MySQL and MariaDB servers.
   - Dual-engine fallback: Transparent failover from remote MySQL to local SQLite storage during network outages.
   - Schema generation: Exports valid 3NF MySQL Workbench (`ENGINE=InnoDB`, `utf8mb4`) and SQLite DDL scripts.

4. **Data Ingestion Engine**:
   - Intelligent spreadsheet mapping: Ingests unstructured Excel (`.xlsx`) or CSV files into normalized relational tables.

5. **Application Scaffolding**:
   - Rapidly bootstrap modular desktop applications (`qventis scaffold`) with clean separation of configuration, database helpers, UI views, business rules, and unit tests.

6. **QA Test Execution & Compliance Reporting**:
   - Generates formal test execution matrices and audit verification documents in Word (`.docx`) format with multi-language support (`en`, `ru`).

---

## Installation

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

---

## Quick Start

### 1. Interactive Component Showcase

Launch the built-in PySide6 showcase window:

```bash
qventis preview
```

### 2. Scaffold a Desktop Application

Generate a modular desktop application boilerplate:

```bash
# Generate complete application architecture
qventis scaffold ./my_app --module all

# Or scaffold specific modules iteratively:
qventis scaffold ./my_app --module db     # Database gateway and config
qventis scaffold ./my_app --module ui     # Main window, catalog view, and dialogs
qventis scaffold ./my_app --module test   # Business rules and pytest suite
```

### 3. Ingest Data and Export MySQL Workbench DDL

```bash
qventis import --data ./datasets --export-sql schema_mysql.sql
```

### 4. Generate Automated QA Test Report

Generate a formal verification document for test execution:

```bash
qventis report --out test_report.docx --author "Lead QA Engineer" --locale ru
```

### 5. Validate Database Connection

```bash
qventis connect --host 192.168.0.5 --port 3306 --user db_user --password secret --db retail_db
```

---

## CLI Reference

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

Qventis Enterprise UI & Application Framework for PySide6

Commands:
  preview     Launch interactive PySide6 showcase window demonstrating UI components
  theme       Inspect or export declarative Qt stylesheets and palette variables
  connect     Verify network connectivity and credentials for MySQL / MariaDB / SQLite server
  export-ddl  Export table schema to strict MySQL (InnoDB) or SQLite DDL script
  import      Ingest tabular datasets (Excel / CSV) into relational database or DDL script
  scaffold    Generate application archetype starter boilerplate (db, ui, test, or all)
  report      Generate automated QA test execution and verification report in Word (.docx) format
  bench       Execute microsecond UI event-loop latency benchmark
```

---

## License

Licensed under the [Apache License, Version 2.0](LICENSE).
