Introduction
Flexx is a pure Python toolkit for creating graphical user interfaces (GUI’s), that uses web technology for its rendering. Apps are written purely in Python; Flexx’ transpiler generates the necessary JavaScript on the fly.
You can use Flexx to create (cross platform) desktop applications, web applications, and (if designed well) export an app to a standalone HTML document. It also works in the Jupyter notebook.
The docs are on Readthedocs. the code is on Github. Flexx is currently in alpha status; any part of the public API may change without notice. Feedback is welcome.
Flexx has a modular design, consisting of a few subpackages, which can also be used by themselves:
flexx.ui - the widgets
flexx.app - the event loop and server
flexx.event - properties and events
flexx.pyscript - Python to JavaScript transpiler
flexx.webruntime - to launch a runtime
flexx.util - utilities
Example
Click the image below for an interactive example:
There is a demo server at http://flexx1.zoof.io (it might not always be on).
Motivation
The primary motivation for Flexx is the undeniable fact that the web (i.e. browser technology) has become an increasingly popular method for delivering applications to users, also for (interactive) scientific content.
The purpose of Flexx is to provide a single application framework to create desktop applications, web apps, and (hopefully soon) mobile apps. By making use of browser technology, the library itself can be relatively small and pure Python, making it widely available and easy to use.
Installation
Flexx requires Python 2.7 or Python 3.2+ and also works on pypy. Further, it needs the tornado library (pure Python). For running desktop apps, it is recommended to have Firefox installed.
To install use any of: * conda install flexx -c conda-forge * pip install flexx * Clone the repo and add it to your PYTHONPATH, or python setup.py install.
License
Flexx makes use of the liberal 2-clause BSD license. See LICENSE for details.
Metadata
Release files for flexx 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flexx-0.4.zip | 507.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flexx-0.4-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 1.0 MB
Release files / flexx-0.4.zip
| Download URL | flexx-0.4.zip |
|---|---|
| Size | 507.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
42e26ba95c7eec951644ee8cd9cd4cf590ba870e9ff5a1d81ff4e4de06f4851b
|
|
BLAKE2b-256 checksum How to use checksums |
1f5ae9afddb84a527c4024e3b4f20b32c4c2ca8bd73dc034e28ccedb3ba22cb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / flexx-0.4-py2.py3-none-any.whl
| Download URL | flexx-0.4-py2.py3-none-any.whl |
|---|---|
| Size | 513.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0528ea12bc8ce653701d50776cacbd29baca205d5441299ea4920e03428fa7bf
|
|
BLAKE2b-256 checksum How to use checksums |
64e3a5b6baf35da888ddf35e987a9400881529eb9d6789c10f2cfaf19cb86e59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |