blux
blux é um framework full-stack declarativo feito em Python para criar interfaces web com renderização dinâmica, ações no backend e roteamento baseado em diretórios.
Visão geral
- roteamento baseado em diretórios
- componentes para UI
- text
- view
- button
- input
- textarea
- image
- link
- table
- modal
- form
- atualização parcial do componente quando uma action é chamada
- actions: funções executadas no backend quando um evento ocorre
Documentação
A documentação está em docs/ e distribuída com MkDocs (Material).
Rodar a versão local
python -m pip install -e '.[docs]'
mkdocs serve
Conteúdo principal
Build da documentação
mkdocs build
Status do projeto
- atualizar componente sempre que uma action é chamada
- actions: função que serão chamadas no back-end assim que um evento for chamado
- api: rotas publicas
- Middleware: deve executar antes da renderisação
- Autenticação
- Proteção contra CSRF
- State
Estrutura principal
app/
pages/
src/
blux/
Exemplo rápido
import blux
class HomePage(blux.Page):
title = "Home"
@blux.action
def salvar(self, request):
form = request.state.form
print(form.get("nome"))
def render(self, request):
return blux.Form(
action=self.salvar,
elements=[
blux.Input(name="nome", placeholder="Digite seu nome"),
blux.Button(content="Enviar", type="submit"),
],
)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blux_framework-0.1.0.tar.gz
(31.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
File details
Details for the file blux_framework-0.1.0.tar.gz.
File metadata
- Download URL: blux_framework-0.1.0.tar.gz
- Upload date:
- Size: 31.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0beff13aff776712b3873f78becaa21dce81167aa903e9cd41d7ccdafd4ab51
|
|
| MD5 |
15f15abc3a1526e23ba2d66e9fdad853
|
|
| BLAKE2b-256 |
86d0825f508e7b008e5e4fbc25f1f5dd43707bc68304b761756985581e35582b
|
File details
Details for the file blux_framework-0.1.0-py3-none-any.whl.
File metadata
- Download URL: blux_framework-0.1.0-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4362ca4cf6565bf0ad1cf168b56eea103f0d290dfe4d1ea1a81b8acb6abf7a5c
|
|
| MD5 |
18a00f482e4f3fe22b30d09edbd37959
|
|
| BLAKE2b-256 |
15bb348fa51cf6eb6de8a9e651d1a441d480211c156ae55dff64261299e2d2b0
|