/fluent

Experimental bespoke framework for building UI in Python (inspired by Flutter)

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Fluent

Pretty multi-platform apps development framework.

State
Fluent isn't ready for production yet!

Usage

Here is the basic Hello, world example:

from fluent.core.launch import launch
from fluent.core.property import Color
from fluent.widget.shape import Text

launch(
    target=Text(
        text='Hello, Fluent',
        color=Color(255, 255, 255)
    )
)

Execution result:

Features

Here is the most featured features:

  • Hot reload
  • Platform independent
  • Easy-to-use
  • All is a widget concept

Installation

The simplest installation way is using pip. You can install the latest stable release by executing following command:

$ pip install libfluent

Also, you need to have sdl2-gfx and sdl2-ttf libraries installed. You can download it from here and here. Unpack that, and execute following commands to compile and install the libraries:

$ ./configure
$ make
$ make install

Building from sources
️ This project is using Poetry as package manager.
If you want to build package by your own please use poetry build.

Requirements

You need to compile and install sdl2-gfx and sdl2-ttf libraries for rendering advanced primitive shapes.