Metadata-Version: 2.4
Name: flet
Version: 0.70.0.dev6680
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Author-email: "Appveyor Systems Inc." <hello@flet.dev>
License-Expression: Apache-2.0
Project-URL: Homepage, https://flet.dev
Project-URL: Repository, https://github.com/flet-dev/flet
Project-URL: Documentation, https://docs.flet.dev/
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: flet-cli; extra == "cli"
Requires-Dist: flet-desktop; extra == "desktop" and (platform_system == "Darwin" or platform_system == "Windows")
Requires-Dist: flet-web; extra == "web"
Requires-Dist: oauthlib>=3.2.2; platform_system != "Pyodide"
Requires-Dist: httpx>=0.28.1; platform_system != "Pyodide"
Requires-Dist: repath>=0.9.0
Requires-Dist: msgpack>=1.1.0
Requires-Dist: typing-extensions; python_version < "3.11"
Provides-Extra: all
Requires-Dist: flet-cli; extra == "all"
Requires-Dist: flet-desktop; extra == "all"
Requires-Dist: flet-web; extra == "all"
Provides-Extra: cli
Requires-Dist: flet-cli; extra == "cli"
Provides-Extra: desktop
Requires-Dist: flet-desktop; extra == "desktop"
Provides-Extra: web
Requires-Dist: flet-web; extra == "web"

<p align="center">
  <a href="https://flet.dev"><img src="https://raw.githubusercontent.com/flet-dev/flet/refs/heads/main/media/logo/flet-logo.svg" alt="Flet logo"></a>
</p>

<p align="center">
    <em>Build multi-platform apps in Python powered by Flutter</em>
</p>

<p align="center">
<a href="https://github.com/flet-dev/flet/blob/main/LICENSE" target="_blank">
    <img src="https://img.shields.io/github/license/flet-dev/flet.svg" alt="License">
</a>
<a href="https://pypi.org/project/flet" target="_blank">
    <img src="https://img.shields.io/pypi/v/flet?color=%2334D058&label=pypi" alt="Package version">
</a>
<a href="https://pepy.tech/project/flet" target="_blank">
    <img src="https://static.pepy.tech/badge/flet/month" alt="Supported Python versions">
</a>
<a href="https://pypi.org/project/flet" target="_blank">
    <img src="https://img.shields.io/pypi/pyversions/flet.svg?color=%2334D058" alt="Supported Python versions">
</a>
<a href="https://ci.appveyor.com/project/flet-dev/flet/branch/main" target="_blank">
    <img src="https://ci.appveyor.com/api/projects/status/xwablctxslvey576/branch/main?svg=true" alt="Build status">
</a>
</p>

---

Flet is a framework that allows building web, desktop and mobile applications
in Python without prior experience in frontend development.

### ⚡️ From idea to app in minutes

An internal tool or a dashboard for your team, weekend project, data entry form, kiosk app,
or high-fidelity prototype - Flet is an ideal framework to quickly hack great-looking
interactive apps to serve a group of users.

### 📐 Simple architecture

No more complex architecture with JavaScript frontend, REST API backend, database, cache, etc.
With Flet you just write a monolith stateful app in Python only and get multi-user,
real-time Single-Page Application (SPA).

### 🔋 Batteries included

To start developing with Flet, you just need your favorite IDE or text editor.
No SDKs, no thousands of dependencies, no complex tooling - Flet has a built-in web server
with assets hosting and desktop clients.

### <img src="https://storage.googleapis.com/cms-storage-bucket/icon_flutter.4fd5520fe28ebf839174.svg" width="18" style="vertical-align: middle;" /> Powered by Flutter

Flet UI is built with [Flutter](https://flutter.dev/), so your app looks professional and could be delivered to any platform.
Flet simplifies the Flutter model by combining smaller "widgets" to ready-to-use "controls"
with an imperative programming model. 

### 📱 Deliver to any device or platform

Package your Flet app as a standalone desktop app (for Windows, macOS, and Linux), mobile
app (for iOS and Android), dynamic/static Web app or as a Progressive Web App ([PWA](https://web.dev/what-are-pwas/)).

## Flet app example

Below is a simple "Counter" app, with a text field and two buttons to increment and decrement the counter value:

```python title="counter.py"
import flet as ft

def main(page: ft.Page):
    page.title = "Flet counter example"
    page.vertical_alignment = ft.MainAxisAlignment.CENTER

    input = ft.TextField(value="0", text_align=ft.TextAlign.RIGHT, width=100)

    def minus_click(e):
        input.value = str(int(input.value) - 1)
        page.update()

    def plus_click(e):
        input.value = str(int(input.value) + 1)
        page.update()

    page.add(
        ft.Row(
            alignment=ft.alignment.center,
            controls=[
                ft.IconButton(ft.Icons.REMOVE, on_click=minus_click),
                input,
                ft.IconButton(ft.Icons.ADD, on_click=plus_click),
            ],
        )
    )

ft.run(main)
```

To run the app, install `flet`:

```bash
pip install 'flet[all]'
```

then launch the app:

```bash
flet run counter.py
```

This will open the app in a native OS window - what a nice alternative to Electron! 🙂

<p align="center">
    <img src="https://docs.flet-docs.pages.dev/assets/getting-started/counter-app/macos.png" width="45%" />
</p>

To run the same app as a web app, update the last line in your script to:

```python
ft.run(main, view=flet.AppView.WEB_BROWSER)
```

Alternatively, you can use the `--web` flag when running the `flet run` command:

```bash
flet run --web counter.py
```

<p align="center">
    <img src="https://docs.flet-docs.pages.dev/assets/getting-started/counter-app/safari.png" width="60%" />
</p>

## Learn more

* [Website](https://flet.dev)
* [Documentation](https://docs.flet.dev)
* [Roadmap](https://flet.dev/roadmap)
* [Apps Gallery](https://docs.flet.dev/gallery)

## Community

* [Discussions](https://github.com/flet-dev/flet/discussions)
* [Discord](https://discord.gg/dzWXP8SHG8)
* [X (Twitter)](https://twitter.com/fletdev)
* [Bluesky](https://bsky.app/profile/fletdev.bsky.social)
* [Email us](mailto:hello@flet.dev)

## Contributing

Want to help improve Flet? Check out the [contribution guide](https://docs.flet.dev/contributing).
