Skip to main content

A Web Frontend Framework for building reactive static UI on the web using Python.

Project description

image

PyFyre - The Python Web Frontend Framework

forthebadge

GitHub Version Github Star License

PyFyre is a web frontend framework for building reactive static user interfaces on the web using Python.

  • Component-based framework. Developers who have experience of using other frontend frameworks should feel quite at home when using PyFyre, especially Flutter developers.
  • Supports JavaScript interoperability, allowing developers to leverage NPM packages and integrate with existing JavaScript applications.
  • Supports CPython interoperability, allowing developers to use existing PyPi packages on the client-side web.

Note: PyFyre is not 1.0 yet. Be prepared to do major refactoring due to breaking API changes.

Documentation

Documentation for PyFyre is still in development.

Examples

We have examples in the examples folder. But here is the super simple example. See how easy it is to create a simple Hello World web app that shows Hello, World text:

from pyfyre.widgets import *
from pyfyre.pyfyre import runApp

class MyWebpage(UsesState):
    def build(self):
        return Container(
            className = "container",
            children = [
                Text(
                    className = "title",
                    textContent = "Hello, World!"
                ),
            ]
        )

runApp(MyWebpage())

Rendered PyFyre: image

Installation

See how easy it is to setup a working environment with PyFyre.

Prerequisites

  • python3.x

Setting Up a Project

Install the PyFyre CLI:

py -m pip install PyFyre

Create a new application:

pyfyre create-app <app_name>

Run the application:

cd <project-name>
pyfyre runapp

PyFyre has a built-in hot reload to enhance your productivity tremendously. Try it out by editing the src/__init__.py and see the magic works.

Contributing

Please read CONTRIBUTING.md for contributing.

Stay Updated

If you would like to get updates about the PyFyre framework, we created a Facebook Page where we are going to post all the updates like newly created widgets, adjustments, core updates, and more!

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

pyfyre-0.3.1.tar.gz (21.3 kB view hashes)

Uploaded Source

Built Distribution

pyfyre-0.3.1-py3-none-any.whl (30.6 kB view hashes)

Uploaded Python 3

Supported by

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