A Python library for building reactive web dashboards 100% in Python
Project description
tupyx
Framework Python para criar dashboards reativos 100% em Python — sem JavaScript, sem HTML manual, sem templates.
from tupyx.ui import *
from tupyx.server import run
contador = Reactive(0)
@page("/")
def home():
def incrementar():
contador.update(lambda v: v + 1)
return Div(
H1(contador),
Button("+1").on_click(incrementar),
)
def app():
return Html(Head(Title("Meu App")), Body(Router()))
run(app)
Instalação
pip install tupyx
Com suporte a pandas:
pip install tupyx[pandas]
Começando
tupyx init meu-dashboard
cd meu-dashboard
tupyx run app.py
Abra http://localhost:8000 no browser.
Recursos
- Reatividade —
Reactive()para estado que atualiza a UI automaticamente - Roteamento —
@page("/rota")para múltiplas páginas - Gráficos —
BarChart,LineChart,AreaChart,DonutChart,TableCharte mais - KPI Cards —
@measure()para métricas reativas - Hot-reload — browser atualiza ao salvar o arquivo
- Pandas — aceita
DataFrameeSeriesdiretamente nos gráficos
Licença
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tupyx-0.1.0.tar.gz
(43.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tupyx-0.1.0-py3-none-any.whl
(55.5 kB
view details)
File details
Details for the file tupyx-0.1.0.tar.gz.
File metadata
- Download URL: tupyx-0.1.0.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fec67fc6b7c6b15e6bcca5a1f50047bad4376d5b26f37a06d773f158cd26ed5
|
|
| MD5 |
9495e6df092b0bb9da8d6c82e53ee73b
|
|
| BLAKE2b-256 |
42cdff71bc5d89e49198c5b9aee44907dee7f363ad589351de183c9431319266
|
File details
Details for the file tupyx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tupyx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 55.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14c70cbac48d074ce2bdc996af6be97713a19ef5a3798e82eb7d33434cc4679
|
|
| MD5 |
0fef9c56de0c22d1491316d2af511726
|
|
| BLAKE2b-256 |
7a5a94a7829031af70daad69e87a828b4b471c8099fee328bd9d9e4fe4cbda9d
|