Skip to main content

Aurora — Interfaces de escritorio profesionales en Python

Interfaces de escritorio profesionales, rápidas y elegantes, escritas solo en Python.
Declarativas · Reactivas · Núcleo nativo en Rust · Sin WebView

Inicio rápido · Guía · Referencia · Arquitectura · Visión · Roadmap


¿Qué es Aurora?

Aurora es una librería para construir aplicaciones de escritorio con interfaces de nivel profesional usando únicamente Python. Describes la interfaz como una función de tu estado; Aurora se encarga del resto con un motor nativo escrito en Rust: layout, tipografía, render, animaciones y eventos.

Nace de una frustración concreta: para que una app de escritorio en Python se vea bien, hoy lo habitual es montar React + WebView + un backend HTTP, o aceptar la estética de toolkits de otra época. Aurora apuesta por un camino distinto: una sola tecnología (Python), una sola ventana nativa y un aspecto moderno desde la primera línea.

from aurora import App, Signal, button, card, row, text

clicks = Signal(0)


def view():
    return card(padding=32, gap=16)[
        text(lambda: f"{clicks()} clicks", size=40, weight=800),
        row(gap=8)[
            button("Restar", lambda: clicks.update(lambda c: c - 1), variant="soft"),
            button("Sumar", lambda: clicks.update(lambda c: c + 1)),
        ],
    ]


App(view, title="Contador").run()

Aurora Studio, la app de demostración
examples/studio.py: navegación, kanban con búsqueda, gráfico interactivo, formularios, ajustes, modal, toasts y tema claro/oscuro.
Todas las capturas del repositorio están renderizadas por la propia librería.

Por qué Aurora

🐍 Solo Python Sin HTML, CSS, JavaScript, bundlers ni servidor local. Tu lógica llama directo a tu base de datos, a una API o a un modelo de IA desde el handler de un botón.
⚡ Rendimiento nativo Layout, render y animaciones corren en Rust (Skia + Taffy), fuera del intérprete y sin el GIL. Python solo interviene cuando cambia tu estado.
✨ Elegante por defecto Tipografía con shaping real, sombras suaves, gradientes, esquinas redondeadas y transiciones animadas incluidas. Un button() sin configurar ya se ve bien.
🧩 Declarativa y componible La jerarquía se lee como markup (column()[...]). Los componentes son funciones Python normales: se testean, se importan y se comparten como cualquier código.
🔁 Reactiva El estado vive en Signals y la interfaz se mantiene sincronizada sola.
🎨 Temas con tokens bg="$primary" en lugar de colores sueltos. Cambia de tema claro a oscuro en caliente con un Signal[Theme].
⌨️ Apps de verdad Scroll con inercia, teclado y foco con Tab, campos de texto con selección, portapapeles, deshacer e IME, imágenes y SVG, y componentes como select, tabs, switch o tooltip.
🧪 Testeable sin pantalla app.render_png() renderiza cualquier vista sin abrir ventana, y app.pilot() simula clics, teclas y rueda con el mismo motor que la ventana: tests de interacción, CI y documentación visual.

Inicio rápido

Requisitos: Python ≥ 3.10, uv y Rust (rustup). En Linux también libfontconfig-dev y libfreetype-dev.

git clone https://github.com/<usuario>/aurora.git
cd aurora
uv sync                          # compila el núcleo Rust (release) e instala en modo editable
uv run examples/hello.py         # tu primera ventana
uv run examples/studio.py        # la demo completa

La primera compilación descarga binarios precompilados de Skia y tarda unos minutos. Después solo se recompila el crate propio, y únicamente cuando cambias código Rust.

¿Prefieres pip? pip install maturin && maturin develop --release.

Un vistazo a la API

from aurora import App, Signal, DAYLIGHT, MIDNIGHT, badge, button, card, column, row, spacer, stat, text

theme = Signal(MIDNIGHT)


def toggle_theme():
    theme.set(DAYLIGHT if theme() is MIDNIGHT else MIDNIGHT)


def header():
    return row(align="center", gap=12)[
        text("Panel", size=26, weight=700),
        badge("beta"),
        spacer(),  # empuja lo siguiente a la derecha
        button("Cambiar tema", toggle_theme, variant="ghost"),
    ]


def view():
    return column(padding=32, gap=24)[
        header(),
        row(gap=16)[
            stat("INGRESOS", "$48.2k", "+12%"),
            stat("PEDIDOS", "1.204", "+3%"),
            stat("DEVOLUCIONES", "2,1%", "+0,4", positive=False),
        ],
        card()[
            text("Últimos movimientos", size=15, weight=600),
            text("Una descripción larga que se corta con elipsis…", max_lines=1, color="$muted"),
        ],
    ]


App(view, title="Mi panel", size=(1100, 720), theme=theme).run()
Concepto En Aurora
Estructura column, row, box, spacer; hijos con [...]
Contenido text (dinámico con lambda), image (PNG, JPEG, WebP, SVG), badge, stat, avatar, divider
Interacción button, u on_click= en cualquier contenedor; hover y pressed animados; tooltip
Entrada text_input, textarea, checkbox, switch, select, tabs, enlazados a un Signal
Teclado Tab y foco visible, Enter/Espacio activan, on_key con atajos (e.matches("mod+s"))
Desplazamiento scroll() con rueda suave, trackpad, barra arrastrable y teclado
Layout flexbox: gap, padding, align, justify, grow, wrap, %, position="absolute"
Estilo bg, gradient, radius, border_*, shadow, opacity, press_scale
Estado Signal(valor): s(), s.set(v), s.update(fn); seguro desde hilos y app.spawn(corrutina)
Tests app.render_png() y app.pilot(): click, type, press, scroll, png…
Temas tokens "$nombre", temas MIDNIGHT y DAYLIGHT, o el tuyo con Theme(...)

La referencia completa de propiedades está en docs/reference.md.

Cómo funciona

 Tu código Python                              Núcleo nativo (Rust)
 ─────────────────                             ───────────────────────────────────────────
 view() ─► árbol de Element ─► to_spec() ──►   spec    dict → nodos tipados, herencia de estilos
     ▲                          (1 cruce)      layout  Taffy (flexbox) + medición de texto Skia
     │                                         paint   Skia: formas, sombras, gradientes, texto
     │                                         anim    hover/pressed, scroll suave, foco, tooltips
     │                                         input   edición de texto, IME, portapapeles
 Signal.set() ◄── callback ◄── evento ◄──────  window  winit + framebuffer; bucle sin el GIL

Python describe; Rust ejecuta. La frontera entre ambos se cruza una vez por actualización, con un árbol completo, en lugar de miles de llamadas pequeñas. Los detalles están en docs/architecture.md.

Stack: PyO3 + maturin · Skia (vía skia-safe) · Taffy · winit + softbuffer.

¿Cuándo usar Aurora?

Aurora encaja cuando quieres una app de escritorio con aspecto moderno, escrita en Python, sin desarrollo web de por medio: dashboards, herramientas internas, paneles de control para tus scripts y modelos, utilidades personales.

Si hoy necesitas un toolkit maduro con cientos de widgets, accesibilidad completa y años en producción, Qt (PySide6/PyQt) es la opción sensata. Si tu interfaz vive en el navegador, una solución web encaja mejor. Aurora no busca reemplazarlas: busca que construir una interfaz bonita y rápida desde Python sea lo más directo posible. Más contexto en VISION.md.

Limitaciones conocidas

Aurora es joven. Esto es lo que todavía no hace (todo está en el roadmap):

  • Render por CPU: suficiente para interfaces normales; el backend GPU está planificado.
  • Reconstrucción completa: cada evento reconstruye la vista entera. Es barato en apps medianas; la reactividad de grano fino llega en la v0.3.
  • Todavía sin canvas de dibujo libre, accesibilidad ni multi-ventana.

Documentación

  • Guía: de cero a una app completa, paso a paso.
  • Referencia: todas las primitivas, componentes y propiedades de estilo.
  • Arquitectura: cómo funciona el núcleo y por qué está diseñado así.
  • Visión y Roadmap: hacia dónde va el proyecto.
  • Ejemplos: hello.py, studio.py y brand.py (genera el banner de este README).

Contribuir

Las contribuciones son bienvenidas, desde reportar un bug hasta implementar un widget. Lee CONTRIBUTING.md para preparar el entorno, conocer las convenciones y proponer cambios. Este proyecto sigue un Código de conducta.

Licencia

MIT © Raidel y contribuidores de Aurora.

Metadata

Release files for aurora-ui 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aurora-ui 0.2.0
File Size Uploaded Provenance Actions
aurora_ui-0.2.0.tar.gz 1.1 MB With provenance Details for aurora_ui-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for aurora-ui 0.2.0
File Actions
aurora_ui-0.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for aurora_ui-0.2.0-cp310-abi3-win_amd64.whl
aurora_ui-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for aurora_ui-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
aurora_ui-0.2.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for aurora_ui-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
aurora_ui-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for aurora_ui-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 37.1 MB

Release files / aurora_ui-0.2.0.tar.gz

Download URL aurora_ui-0.2.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
b4986a40acc3247abdb4b555c34a13b844bb214d47f57535d785c7213d9924b7
BLAKE2b-256 checksum
How to use checksums
16cf388ca390689c437fdacfa97561a2bb550be6122c5907593668ff449e681f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / aurora_ui-0.2.0-cp310-abi3-win_amd64.whl

Download URL aurora_ui-0.2.0-cp310-abi3-win_amd64.whl
Size 8.3 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1b2d777f25d132f315de9f9a3a3ad10c0be0e65f306d494caf8674719fbf0489
BLAKE2b-256 checksum
How to use checksums
ad10abc0db503c1c851c83a1cf25e6438ee01a86aebfa49af5d892737072748d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / aurora_ui-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL aurora_ui-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 10.7 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
0b60e987de330cfec83ac1c77e95e596c79d186de2c0386667528f95c357763e
BLAKE2b-256 checksum
How to use checksums
87b200a0c2f192a2a87e64d3263ad3c389172d14c8dc5e0b875e67904420cd30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / aurora_ui-0.2.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL aurora_ui-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Size 8.4 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b2468efc7d571af16f36696d274d01fc88258291c5cdf6a3377d95cc12415d18
BLAKE2b-256 checksum
How to use checksums
59a0c1559b54fca1f802ea03521e6ccfd033a08512c31d114f81037ae5678637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / aurora_ui-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL aurora_ui-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 8.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3b5d40f6ac713f8e03a7a611e037ad69f89536a7b0c255869bac800ccd1d6bae
BLAKE2b-256 checksum
How to use checksums
237772ac36634e6e0fe62ee789d3f1d475049156d7d54007176d2b7f28964e48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Security for aurora-ui 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for aurora_ui-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page