zerorpc-python | zerorpc for python
kandi X-RAY | zerorpc-python Summary
kandi X-RAY | zerorpc-python Summary
zerorpc for python
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Run zerpc client
- Inspect a zerpc client
- Setup links
- Inspect a set of remote methods
- Fork a task context
- Return the task header for the hook
- Get an instance of Context
- Asynchronously execute a single task
- Close the socket
- Send data to the socket
- Called when the state changes
- Sends a heartbeat
- Generate a new message id
- Start the event loop
- Process a request
- Inject built methods
- Handle remote error
- Process the answer received from the client
- Process a RPC call
- Receive events from the queue
- Receive a single event from the server
- Receive events from the server
- Run a zerpc server
- Process an answer received from the client
- Receive a single message
- Receive messages
zerorpc-python Key Features
zerorpc-python Examples and Code Snippets
Community Discussions
Trending Discussions on zerorpc-python
QUESTION
I have an electron app frontend (zerorpc-node) communicating with a python backend (zerorpc-python) that needs to:
a) be able to send requests to the backend [standard zerorpc call]
b) be able to run multiple backend processes simultaneously [followed the architecture in https://github.com/0rpc/zerorpc-node/issues/96)
c) be able to cancel a backend process at will [not sure how to do this with current architecture]
Any guidance on how to architecture a solution to (c) would be great. If necessary I am willing to switch away from zerorpc if it is limiting, but if the solution involves using zerorpc that's fantastic.
...ANSWER
Answered 2019-Jul-18 at 17:07I ended up using gipc
to spin up processes. The cancellation mechanism relies on the fact that when a gipc
process is terminated, the pipe closes. The entire API is complicated, this is what I ended up with:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zerorpc-python
You can use zerorpc-python like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page