Run a RPC server by the most convenient way
Project description
Pyrpcd is a RPC server, implemented by tornado framework. Expose all functions of a python module in current directory. Use voxe as data transporting protocol.
Usage
Install:
python -m pyrpcd.server hello.py
hello.py
def print_hello():
print('hello ...')
def remote_add(a, b):
return a + b
main.py
import requests
import voxe
response = requests.post('http://127.0.0.1:8080/rpc/print_hello')
response = requests.post('http://127.0.0.1:8080/rpc/remote_add', voxe.dumps(2, 3))
print(voxe.loads(response.content))
Run:
python main.py
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyrpcd-0.0.6.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrpcd-0.0.6.tar.gz.
File metadata
- Download URL: pyrpcd-0.0.6.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6fc9641e6e0beec5f5a4353e60a44a36525b11853637b86e52fe23757eb3981
|
|
| MD5 |
c6635f84e85a6c976a9edbe2b80353e4
|
|
| BLAKE2b-256 |
d6868b0e377aac14dde6ee66b673d373758bbfd2960075408ecfaac7a8a7c0bf
|
File details
Details for the file pyrpcd-0.0.6-py3-none-any.whl.
File metadata
- Download URL: pyrpcd-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
665cfe9e12ab9c23755784df73d4f49526883c9772b44703f8db87c45578e707
|
|
| MD5 |
b16c45534d495af269a4c91ecc712d11
|
|
| BLAKE2b-256 |
7c8c626b98275577a1f4184659948dc39d109c1a6311c027289cac0dd777c173
|