Skip to main content

Websocket based python wrapper for Electron projects

Project description

# MesonPY
## Backend Side (Py)
from MesonPy.BackendApplication import BackendApplication

if __name__ == '__main__':
app = BackendApplication()
app.kernel.rpc.register('hello', lambda: print('hello world'))
app.kernel.rpc.register('add2', lambda x, y: x + y)
## Frontend Side (Py)
from MesonPy.FrontendApplication import FrontendApplication

if __name__ == '__main__':
app = FrontendApplication()
app.rpc('hello') # Print "hello world" in the server process
print(app.rpc('add2', (2, 1))) # 3

Project details

Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
MesonPy-0.0.1.tar.gz (14.1 kB) Copy SHA256 hash SHA256 Source None Nov 30, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page