pwwang / neutrapy

A CLI tool to build desktop applications with Neutralinojs and Python as backend

Home Page:https://pwwang.github.io/neutrapy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A CLI tool to build desktop applications with Neutralinojs and Python as backend


Thanks to Neutralinojs's extension system, which allows us to spawn a process and communicate with it. neutrapy maintains both the app and the extension written in Python. Also thanks to PyOxidizer that compiles Python code to into binary so that it can be shipped with the app.

Example

example

The example is generated by neutrapy create -n example. It isn't the same as the offical example, called litePy, from Neutralinojs. The official one saves the code into a temporary file and executes it by spawn a python process, which is just a one-way communication. neutrapy uses websocket_client for the extension to communicate with the Neutralino server. This enables a bi-directional communication between the frontend and backend.

Installation

$ pip install -U neutrapy
# Installs the latest version of neutrapy

Documentation

https://pwwang.github.io/neutrapy/

Credits

About

A CLI tool to build desktop applications with Neutralinojs and Python as backend

https://pwwang.github.io/neutrapy


Languages

Language:Python 55.1%Language:Starlark 30.0%Language:JavaScript 6.1%Language:CSS 4.1%Language:HTML 3.0%Language:Svelte 1.0%Language:Rust 0.6%