Skip to main content

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"),
            ],
        )

Metadata

Release files for blux-framework 0.1.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 blux-framework 0.1.0
File Size Uploaded Provenance Actions
blux_framework-0.1.0.tar.gz 31.2 kB Without provenance Details for blux_framework-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for blux-framework 0.1.0
File Interpreter ABI Platform Actions
blux_framework-0.1.0-py3-none-any.whl Python 3 none any Details for blux_framework-0.1.0-py3-none-any.whl

Total release size: 70.1 kB

Release files / blux_framework-0.1.0.tar.gz

Download URL blux_framework-0.1.0.tar.gz
Size 31.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a0beff13aff776712b3873f78becaa21dce81167aa903e9cd41d7ccdafd4ab51
BLAKE2b-256 checksum
How to use checksums
86d0825f508e7b008e5e4fbc25f1f5dd43707bc68304b761756985581e35582b
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / blux_framework-0.1.0-py3-none-any.whl

Download URL blux_framework-0.1.0-py3-none-any.whl
Size 38.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4362ca4cf6565bf0ad1cf168b56eea103f0d290dfe4d1ea1a81b8acb6abf7a5c
BLAKE2b-256 checksum
How to use checksums
15bb348fa51cf6eb6de8a9e651d1a441d480211c156ae55dff64261299e2d2b0
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for blux-framework 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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