Metadata-Version: 2.4
Name: quantumgui
Version: 1.2.0
Summary: Native GPU-accelerated Python GUI library built 100% on Material Design 3 standards.
Author: QuantumGUI Contributors
License: QuantumGUI Community & Commercial License v1.0
        Copyright (c) 2026 QuantumGUI Authors. All rights reserved.
        
        1. GRANT OF COMMUNITY LICENSE (FREE TIER)
        Permission is hereby granted, free of charge, to use, copy, modify, and distribute
        applications built with QuantumGUI ("the Software") strictly under the following
        conditions:
          (a) Personal, educational, academic, or non-profit open-source use; OR
          (b) Commercial use by an individual, freelancer, or organization whose total
              annual gross revenue (including funding or project revenue) is strictly
              less than USD $25,000 per year.
        
        2. COMMERCIAL LICENSE REQUIREMENT
        Any individual, organization, or commercial project with annual gross revenue equal
        to or greater than USD $25,000 MUST obtain a valid QuantumGUI Commercial License
        before using the Software in production or distributing applications built with it.
        Companies of any size may evaluate the Software internally for up to 30 days.
        
        3. RESTRICTIONS
        Under the Community License, you may NOT:
          (a) Redistribute, repackage, or sell the Software itself (in whole or in part)
              as a competing GUI library, UI component suite, or visual RAD/IDE tool;
          (b) Remove or obscure copyright or license notices included in the Software.
        
        4. DISCLAIMER OF WARRANTY
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
        INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
        PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
        HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM THE USE
        OF THE SOFTWARE.
        
        For commercial licensing inquiries, contact the QuantumGUI maintainers.
        
Project-URL: Homepage, https://pablometal1.github.io/quantumgui-web/
Project-URL: Documentation, https://pablometal1.github.io/quantumgui-web/docs.html
Project-URL: Tutorials, https://pablometal1.github.io/quantumgui-web/tutorials.html
Keywords: gui,material-design-3,skia,gpu,desktop,python,erp,datagrid
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: skia-python>=130.0
Requires-Dist: glfw>=2.7.0
Requires-Dist: PyOpenGL>=3.1.7
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Provides-Extra: build
Requires-Dist: pyinstaller>=6.0; extra == "build"
Dynamic: license-file

# QuantumGUI

**Librería GUI nativa para Python acelerada por GPU (Skia + GLFW), diseñada 100% bajo los estándares de Material Design 3.**

Sin navegador embebido, sin WebView y sin dependencias de otros toolkits GUI (`tkinter`, Qt o wx). Interfaz fluida a 120 FPS con API declarativa en bloques `with`, modificadores encadenables y Suite Empresarial completa.

- **Web oficial:** https://pablometal1.github.io/quantumgui-web/
- **Documentación API:** https://pablometal1.github.io/quantumgui-web/docs.html
- **Tutoriales (37 capítulos):** https://pablometal1.github.io/quantumgui-web/tutorials.html
- **Roadmap (v1.2.0 — 100% M3 + M3 Expressive):** https://pablometal1.github.io/quantumgui-web/roadmap.html

---

## Instalación

```bash
pip install quantumgui
```

Requiere **Python 3.11+**. Instala automáticamente `skia-python`, `glfw` y `PyOpenGL`.

---

## Inicio Rápido

```python
from quantumgui import Theme, ui

theme = Theme(seed="#6750A4", mode="light")
contador = ui.state(0)

win = ui.window("Mi Primera App", width=760, height=440, theme=theme, main=True)
with win:
    with ui.column(gap=16, align="stretch").padding(24):
        with ui.row(justify="space_between", align="center").fill_width():
            ui.text("QuantumGUI v1.0", role="headline_medium")
            ui.switch(
                label="Modo Oscuro",
                on_change=lambda d: setattr(theme, "mode", "dark" if d else "light"),
            )
        with ui.card(variant="elevated", gap=12):
            ui.text(lambda: f"Clicks: {contador.value}", role="title_large")
            ui.button("Sumar +1", icon="add", on_click=lambda: setattr(contador, "value", contador.value + 1))

win.run()
```

---

## Características Principales (v1.2.0 — 100% Material Design 3 + M3 Expressive)

- **Renderizado 100% GPU nativo (Retained Mode):** Skia + GLFW + OpenGL con invalidación por demanda (0% consumo en reposo), soporte HiDPI/4K, física *M3 Expressive Spring* y *Ripple*.
- **Los 6 Subsistemas Oficiales de Estilos M3 al 100%:**
  - **Color:** Motor perceptual HCT con las **7 variantes de Dynamic Scheme** (`tonal_spot`, `vibrant`, `expressive`, `neutral`, `monochrome`, `fidelity`, `content`), 3 niveles de contraste (`standard`, `medium`, `high`) y los **12 roles Fixed Accent** (`primary_fixed`, `primary_fixed_dim`, `on_primary_fixed`, `on_primary_fixed_variant` + pares `secondary` y `tertiary`).
  - **Typography:** **30 roles oficiales** (15 Baseline + 15 Emphasized) y separación de `brand_font` (Display/Headline) vs `plain_font` (Title/Body/Label).
  - **Shape:** Escala completa M3 Expressive de **10 niveles** (`none` 0dp hasta `extra_extra_large` 48dp y `full`) + esquinas asimétricas (`extra_large_top`, `large_end`, etc.).
  - **Motion & Transitions GPU:** `MotionScheme` (`expressive` / `standard`) con los 6 tokens de Spring, **10 curvas `cubic-bezier` exactas** (incluyendo `emphasized` de 2 segmentos), **16 tokens de duración** (`short1..extra_long4`) y los **6 patrones de Transiciones GPU** (`ui.animated_switcher` + `ui.router(..., transition=...)`: `fade_through`, `shared_axis_x/y/z`, `fade`, `container_transform`).
  - **Elevation:** Niveles `0..5` con tint tonal y sombra ambiental/direccional GPU.
  - **Icons:** **4,304 íconos oficiales Google Material Symbols Rounded** embebidos con soporte real de los **4 ejes variables** (`fill`, `weight`, `grade`, `optical_size`).
- **Motor Universal de Estilos:** `.bg()`, `.fg()`, `.border()`, `.radius()`, `.shape()`, `.elevation()`, `.opacity()`, `.size()`, `.padding()`, `.margin()`, `.tooltip()` en todos los controles.
- **97 Controles M3 y 18 Gráficos GPU:** botones, formularios avanzados (`Autocomplete`, `TagInput`, `OTPInput`, `SignaturePad`, `DropZone`, `CurrencyInput`), productividad (`KanbanBoard`, `CalendarView`, `CommandPalette`, `PropertyGrid`), transiciones (`AnimatedSwitcher`) y gráficos BI (`Line`, `Bar`, `Donut`, `Candlestick`, `Treemap`, `Sankey`, `Waterfall`, `BoxPlot`, `Heatmap`, `Gantt`, `Sparkline`).
- **Suite Empresarial:**
  - `ui.data_grid` virtualizado en $O(1)$ para **+100.000 filas a 120 FPS** (`page_size=100`, `virtualized=True`, edición inline, totales, CSV y Excel `.xlsx` nativo).
  - `ui.sql_source` y `ui.csv_source` (conexión directa a SQLite, PostgreSQL, MySQL, SQL Server y SQLAlchemy con guardado `UPDATE` automático).
  - `ui.rule_engine` (reglas de negocio reactivas y campos calculados), `ui.audit_log` + `ui.history` (Undo/Redo), `ui.master_detail`, `ui.pdf_report` multipágina vectorial, `ui.task_runner`, `ui.auth` (RBAC), `ui.i18n`, `ui.router`, `ui.preferences`.
  - Ventanas personalizables (`frameless`, `transparent`, DWM Dark Mode y `titlebar_color` en Windows 10/11, `on_file_drop`, `ui.set_main_window`).
- **CLI oficial `quantumgui`:**
  ```bash
  quantumgui info
  quantumgui new mi_erp --template erp
  python -m quantumgui run mi_erp/main.py --watch   # Hot-Reload automático
  quantumgui build mi_erp/main.py                   # Ejecutable standalone .exe
  ```

### Hot-Reload en PyCharm (botón Play)

1. En la terminal de PyCharm, asegurate de tener la última versión en el intérprete del proyecto:
   ```bash
   python -m pip install -U quantumgui
   ```
2. Abrí **Run → Edit Configurations… → `+` → Python**.
3. Cambiá `script` por **`module`** (Module name) y escribí: `quantumgui`.
4. En **Parameters**, escribí: `run main.py --watch` *(reemplazá `main.py` por tu archivo principal)*.
5. En **Working directory**, dejá la carpeta raíz de tu proyecto y hacé clic en **OK**.
6. Presioná el botón **Play** de PyCharm: cada vez que edites y guardes (`Ctrl+S`), la ventana se reiniciará automáticamente con los cambios.

---

## Licencia

**QuantumGUI Community & Commercial License v1.0** (ver `LICENSE`):
- **Gratis** para uso personal, educativo, open-source y proyectos/empresas con ingresos brutos anuales menores a **USD \$25.000**.
- **Licencia Comercial** requerida para organizaciones o proyectos comerciales con ingresos brutos anuales iguales o superiores a **USD \$25.000**.
