Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwwang/neutrapy
A CLI tool to build desktop applications with Neutralinojs and Python as backend
https://github.com/pwwang/neutrapy
desktop-app electron neutralinojs python websockets
Last synced: 14 days ago
JSON representation
A CLI tool to build desktop applications with Neutralinojs and Python as backend
- Host: GitHub
- URL: https://github.com/pwwang/neutrapy
- Owner: pwwang
- Created: 2022-08-17T00:50:47.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-25T06:25:14.000Z (over 2 years ago)
- Last Synced: 2024-12-13T03:51:31.045Z (21 days ago)
- Topics: desktop-app, electron, neutralinojs, python, websockets
- Language: Python
- Homepage: https://pwwang.github.io/neutrapy
- Size: 620 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A CLI tool to build desktop applications with Neutralinojs and Python as backend
Thanks to [Neutralinojs][1]'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`][3] that compiles Python code to into binary so that it can be shipped with the app.
## Example
![example](./example.png)
The example is generated by `neutrapy create -n example`. It isn't the same as the offical example, called [litePy][4], 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][5] for the extension to communicate with the Neutralino server. This enables a bi-directional communication between the frontend and backend.
## Installation
```bash
$ pip install -U neutrapy
# Installs the latest version of neutrapy
```## Documentation
[https://pwwang.github.io/neutrapy/][6]
## Credits
- [neutralinojs][1]
- [PyOxidizer][3]
- [neutralino_python_extension_sample][2][1]: https://neutralino.js.org/
[2]: https://github.com/danidre14/neutralino_python_extension_sample
[3]: https://github.com/indygreg/PyOxidizer
[4]: https://github.com/codezri/litepy
[5]: https://github.com/websocket-client/websocket-client
[6]: https://pwwang.github.io/neutrapy/