🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

zenaura

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zenaura

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.

0.15.46
98

Supply Chain Security

100

Vulnerability

100

Quality

100

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Shell access

Supply chain risk

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Found 1 instance in 1 package

Uses eval

Supply chain risk

Package uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.

Found 1 instance in 1 package

Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts