Skip to main content

Zenaura is an experimental Python library built upon PyScript, designed to empower Python developers to create stateful, component-based Single Page Applications (SPAs). By leveraging a virtual DOM implementation, Zenaura optimizes the performance, reactivity, responsiveness, and interactivity of web applications. This allows developers to build high-performance, dynamic web applications using familiar Python concepts and syntax.

Project description

Zenaura

[!WARNING] This library is under development, it's going to change a lot from now on; breaking changes may occur. Please keep an eye on release notes.

[!NOTE] Contribution is open , awesome features in the backlog so if you are intrested my email is linked to this profile.

Alt text

Zenaura is a Python library built on top Pydide, PyScript, designed to empower Python developers to create light-weight, performant, stateful, component-based Single Page Applications (SPAs). By leveraging a virtual DOM implementation, Zenaura optimizes the performance, reactivity, responsiveness, and interactivity of web applications. This allows developers to build high-performance, dynamic web applications using familiar Python concepts and syntax.

Documentation

Zenaura documentation and API reference

note: hot-reloading is still under-development, it works, however working with cli, zenaura build after every change is better.

Installing zenaura

prerequisits:

  • Python 3.11 or above.
  • pip
  • devolopment server requirements:
    • flask==2.3.3
    • watchdog==4.0.1
    • flask-sock==0.7.0
pip install zenaura flask==2.3.3 watchdog==4.0.1 flask-sock==0.7.0

This command will install zenaura library, client and server, CLI.

Creating your first zenaura app

In this example we will go over creating your first zenaura application, go over basic concepts as well.

Once you installed the library, the library, it comes with simple CLI tool.

CLI Commands:

- init: Will create simple zenaura application
- build : Will build the application
- run : Will run the development server

First let's initials a basic zenaura application:

zenaura init

This command will auto generate basic zenaura application with the needed files auto generated for you, so you can get up to speed with the library.

Auto generated files from init command:

  • build.py : used for building zenaura application.
  • index.py : simple zenaura server.
  • public/components.py: single zenaura component.
  • public/presentational.py: few zenaura presentational components created using builder interface.
  • public/main.py : main file where we import components, create pages and configure the client router.
  • public/routes.py : where your client side routes lives.
  • public/main.css : the main css file.
  • public/config.json: pyscript pydide configuration.

Building zenaura

zenaura build

This command will build index.html.

Running zenaura

zenaura run

This command will run the development server. Now open browser tab and go to localhost:5000.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zenaura-0.15.10.tar.gz (66.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zenaura-0.15.10-py3-none-any.whl (73.1 kB view details)

Uploaded Python 3

File details

Details for the file zenaura-0.15.10.tar.gz.

File metadata

  • Download URL: zenaura-0.15.10.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for zenaura-0.15.10.tar.gz
Algorithm Hash digest
SHA256 b5188d86fbc19e563e017aeb735b4a30f281b93b0551591f61df082f8ded2214
MD5 26a2d699c6e8121d9f0b4bd509b0b792
BLAKE2b-256 af23f4ed8debfd57d4cf647b1b1e9b20bc68e26b76347db4ef2beafb5eee9387

See more details on using hashes here.

File details

Details for the file zenaura-0.15.10-py3-none-any.whl.

File metadata

  • Download URL: zenaura-0.15.10-py3-none-any.whl
  • Upload date:
  • Size: 73.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for zenaura-0.15.10-py3-none-any.whl
Algorithm Hash digest
SHA256 4f7b88067342429a1e60d2d54296ef920021c5b494548b20f8a61dc5a5690f31
MD5 d21b5abf8754054f7863dce1299d360f
BLAKE2b-256 fb0d249ee1331c5be8d481adae9b02009e8f3aecf20d216015a4567e35fa328b

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