Skip to main content

The Universal Python UI Framework for Desktop, Web, and Mobile

Project description

FluxPy 🚀 (Flet-Style Edition)

FluxPy is a massive, professional Python library for building stunning desktop applications with a declarative syntax inspired by Flet. It offers extreme customization for every single pixel.

Key Features

  • Declarative UI: Write code that looks like the UI structure.
  • Extreme Customization: Control fonts, colors, gradients, borders, and shadows for every element.
  • Smart Debugger: Instant error reporting with file and line precision.
  • High Performance: Built on PyQt6 for native speed.

Installation

pip install fluxpy

Quick Start (Flet-Style)

import fluxpy as fx

def main(page: fx.Page):
    page.title = "FluxPy Modern App"
    page.bgcolor = "#f0f2f5"
    
    # Highly customizable text
    title = fx.Text(
        "Welcome to FluxPy", 
        size=30, 
        weight="bold", 
        color="#1a73e8",
        font_family="Verdana"
    )
    
    # Container with padding and border radius
    card = fx.Container(
        content=fx.Text("This is a customizable card", color="white"),
        bgcolor="#34495e",
        padding=20,
        border_radius=15,
        width=300
    )
    
    def on_btn_click():
        print("Button Clicked!")
        title.value = "Button Clicked!"
        page.update()

    btn = fx.ElevatedButton("Click Me", on_click=on_btn_click, bgcolor="#e74c3c")
    
    page.add(title, card, btn)

app = fx.FluxApp()
app.run(main)

Performance Tips

  1. Batch Updates: Use page.update() only after making multiple changes.
  2. SVG Assets: Use SVG for icons to maintain quality across DPI levels.
  3. Control Reuse: Reuse complex containers instead of recreating them.

Functions List

Run fx.help() in your script to see all available components.

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

fluxpy_ui-3.0.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fluxpy_ui-3.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file fluxpy_ui-3.0.0.tar.gz.

File metadata

  • Download URL: fluxpy_ui-3.0.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for fluxpy_ui-3.0.0.tar.gz
Algorithm Hash digest
SHA256 9b487b6d8b9036ee0e0b9d597e27d8c2d0f481405c246a1008925b379c26c7d1
MD5 0cb5a16c6ec8e22c2106d8ab7b1a5602
BLAKE2b-256 5e8539f3aa3aa615a9b91187479b1a77e221bd1d0733dffd3e00a94cd59a72ee

See more details on using hashes here.

File details

Details for the file fluxpy_ui-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: fluxpy_ui-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for fluxpy_ui-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fdee0f43c83e67a48ff9e94f5fecffce6bcc42301c08c4339bd3aca84169d8dd
MD5 c0fea72614d1d6cd275844fafc7cb6ec
BLAKE2b-256 5fa993f217e84ea63e8497ed0b186dd6212daeffd11e4daf99b294e6fa9a75d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page