Skip to main content

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

Project description

FluxPy v3.1.0 - The Universal Python Application Framework

FluxPy is a comprehensive, professional Python framework designed for creating modern, cross-platform desktop and web applications. It combines the power of PyQt6 with the simplicity of Flet's declarative syntax style.


Key Features in v3.1.0

Feature Description
Declarative Syntax Flet-compatible style for easy UI creation: page.add(Control(...))
Cross-Platform Support Single codebase runs on Desktop and Web (via Flask and PyScript).
Complete Widget Arsenal Implementation of all requested UI elements (Buttons, Inputs, Layouts, Tables, etc.).
Advanced Customization Full control over fonts, colors, backgrounds, borders, shadows, and gradients for every element.
Smart Debugger Error tracking system showing file, line number, error type, and solution suggestions.
RTL Support Full support for Right-to-Left languages like Arabic.
Smart Loading System Lazy loading for heavy elements to ensure high performance.

Installation

FluxPy is published on PyPI under the name fluxpy-ui.

pip install fluxpy-ui

Simple Example

from fluxpy import FluxApp, Page, Text, ElevatedButton, Column

def main(page: Page):
    page.title = "My First FluxPy Application"
    page.bgcolor = "#f0f0f0"
    page.padding = 30

    def button_clicked(e):
        e.internal_control.setText("Clicked!")
        e.update()

    page.add(
        Column(
            controls=[
                Text("Welcome to FluxPy!", font_size=30, color="#007bff"),
                Text("A universal framework for Python.", font_size=16),
                ElevatedButton(
                    text="Click Here",
                    on_click=button_clicked,
                    bgcolor="#28a745",
                    color="white",
                    border="2px solid #1e7e34"
                )
            ],
            spacing=20
        )
    )

if __name__ == "__main__":
    app = FluxApp(target="desktop")
    app.run(main)

Widget Arsenal in v3.1.0

The following widgets have been implemented with full support for customization properties (color, bgcolor, border, shadow, gradient, on_click, on_change, etc.):

Category Implemented Widgets
Core & Dialogs Page, AlertDialog, BottomSheet
Buttons ElevatedButton, TextButton, OutlinedButton, IconButton, FloatingActionButton
Text & Input Text, TextField (Password, Multiline), Dropdown, Checkbox, Radio, Slider, Switch
Layout Container (Padding, Margin, Border, Shadow, Gradient), Row, Column, Stack, Divider
Media Image, Icon
Lists & Tables ListView, DataTable
Navigation NavigationBar, Tabs

Performance and Optimization Tips

FluxPy is built on PyQt6, ensuring high performance on the desktop. For web application optimization:

  1. Lazy Loading: Use ListView and DataTable for large datasets.
  2. Minimize Updates: Only call the update() function when strictly necessary to avoid unnecessary re-rendering.
  3. Images: Use the provided transparent logo logo_transparent.png located in the assets folder for compatibility with different theme modes.

Note: The logo has been updated to a transparent background version (logo_transparent.png) to ensure clarity on various backgrounds.

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.2.4.tar.gz (15.3 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.2.4-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fluxpy_ui-3.2.4.tar.gz
  • Upload date:
  • Size: 15.3 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.2.4.tar.gz
Algorithm Hash digest
SHA256 ccd3190aa9066f86c3716d66a5d6d2ac03c3bda1d63feb27bb2eb0b25c2db72f
MD5 52cafd433545b52a5c9fed53f1e6b0b4
BLAKE2b-256 56d7565648b0a03e49b98201846bdbf8819d418c1795350cfb9b07082d8bf2a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fluxpy_ui-3.2.4-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 38044a58ae79cefbdaa57ad2323aecfd7f964e4fb4799b38158187fa1c5c5d1a
MD5 4e33975da14fc88a2f52c7933457fa9a
BLAKE2b-256 1726693ff1d95625d1f8b5a24c2507460aa8b05cc2f5df73f5ddd8b2f0de4e88

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