Metadata-Version: 2.4
Name: qventis-ui
Version: 0.1.1
Summary: Modern component library, theme engine and application scaffolder for PySide6
Author: Qventis UI Contributors
License: MIT
Keywords: pyside6,qt6,gui,ui-components,theme-engine,desktop-app,widgets,scaffold
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Software Development :: Widget Sets
Classifier: License :: OSI Approved :: MIT License
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
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: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Dynamic: license-file

# Qventis UI

[![PyPI version](https://img.shields.io/pypi/v/qventis-ui.svg)](https://pypi.org/project/qventis-ui/)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![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/)

A modern, declarative UI component library, theme engine, and application scaffolding framework for **PySide6** (Qt for Python).

---

## Overview

**Qventis UI** streamlines desktop application development by providing pre-styled Qt widgets, responsive layout utilities, and an extensible design system. It eliminates repetitive boilerplate when building data-centric desktop tools, admin dashboards, and internal management interfaces.

## Key Capabilities

- **Adaptive Design System & Theme Engine**: Generate consistent Qt Style Sheets (QSS) with custom typography, primary/secondary palettes, and accent states.
- **Reactive Composite Widgets**:
  - `SearchField`: Real-time text filtering with signal debouncing.
  - `CardTableView`: Polished list views with image thumbnails and conditional row formatting.
  - `ValidatedForm`: Input dialogs with built-in visual feedback and error tooltips.
  - `MediaPicker`: File picker components with automatic asset lifecycle management.
- **Data Adapters**: Utilities for synchronizing tabular structures with relational backends (SQLite).
- **Application Scaffolding**: Built-in CLI (`qventis init`) to bootstrap modular desktop applications following clean separation of concerns.

---

## Installation

Install via pip:

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

### System Requirements

- Python 3.9 or higher
- PySide6 6.5.0 or higher

---

## Quick Start

### 1. Scaffolding a New Application

Generate a clean boilerplate application structure:

```bash
qventis init --dir my_desktop_app
```

This creates a ready-to-run project with modular views, data helpers, and theme configuration.

### 2. Manual Component Usage

```python
import sys
from PySide6.QtWidgets import QApplication, QMainWindow, QLabel, QVBoxLayout, QWidget
from qventis.ui.theme import get_app_stylesheet

class MainWindow(QMainWindow):
    def __init__(self):
        super().__init__()
        self.setWindowTitle("My Qventis Application")
        self.resize(800, 600)
        
        container = QWidget()
        layout = QVBoxLayout(container)
        layout.addWidget(QLabel("Welcome to Qventis UI"))
        self.setCentralWidget(container)

if __name__ == "__main__":
    app = QApplication(sys.argv)
    
    # Apply Qventis Theme
    stylesheet = get_app_stylesheet(
        font_family="Segoe UI",
        bg_main="#FFFFFF",
        bg_sub="#F4F6F9",
        accent="#2B6CB0"
    )
    app.setStyleSheet(stylesheet)
    
    window = MainWindow()
    window.show()
    sys.exit(app.exec())
```

---

## Architecture & Project Structure

Projects bootstrapped with `qventis init` follow an intuitive MVC pattern:

```text
my_desktop_app/
├── config.py           # Application themes, brand palettes and constants
├── db_helper.py        # Data access layer and SQLite queries
├── main.py             # Application entrypoint and authentication
├── catalog.py          # Primary view with live filtering and tabular display
├── editor.py           # Entity editing dialogs with input validation
└── orders.py           # Administrative workflow and detail views
```

---

## CLI Reference

```text
usage: qventis [-h] {init,build-db,protocol} ...

Commands:
  init        Scaffold a modular PySide6 application structure
  build-db    Import data sources into structured SQLite database
  protocol    Generate verification summary document
```

---

## License

Qventis UI is open-source software licensed under the **MIT License**.
Copyright (c) 2026 Qventis UI Contributors.
