Skip to content

Alpha 0.1.2

Compare
Choose a tag to compare
@zabbix-byte zabbix-byte released this 15 Sep 11:04
· 55 commits to main since this release

(Alpha 0.1.2) PyPulse: Desktop Applications with Chromium-Based Ease

🌟Overview

PyPulse is an open-source project designed to revolutionize desktop application development by seamlessly integrating the power of the Chromium web engine into Python-based applications. It employs a versatile template-based architecture to simplify the creation of web-based desktop applications, custom browsers, or embedding web content within your Python projects. With PyPulse, you'll embark on a journey to crafting dynamic, cross-platform applications with ease and efficiency.

✨ New Features

Request View middleware

This feature enables you to directly interact with the request you are managing within the view. It allows you to intercept both the GET and POST methods before rendering the template.

How to get the request:
In the view, you have access to a parameter called "request," allowing you to easily retrieve and work with the request object.

@view(name='home', path_trigger='/')
def home(request):

Example of GET request:
{'method': 'GET', 'headers': {'Host': '127.0.0.1:63333', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) PyPulse/10.00 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'en-US,en;q=0.9'}}

Example of POST request:
{'method': 'POST', 'headers': {'Host': '127.0.0.1:63333', 'Upgrade-Insecure-Requests': '1', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) PyPulse/10.00 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'en-US,en;q=0.9'}, 'body': {'name': 'test_body_name1', 'name2': 'test_body_name2'}}