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
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.2.tar.gz
(4.1 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.2.tar.gz.
File metadata
- Download URL: pyrpcd-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
821f9c91e2a495b1c57bda5e293e3edebf8cf27574bf5d8d77f81dbd757d74f2
|
|
| MD5 |
c36b685a8a13ee976de298fc840152cd
|
|
| BLAKE2b-256 |
f03af4e557f862099f50b430b1e5f83ec34ab7fbaa29a0427dce08c9c6be0b88
|
File details
Details for the file pyrpcd-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pyrpcd-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 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 |
9875f1652398c228af2694e8106e3d228262e9a8a3e3feb9c55b19c620ab0520
|
|
| MD5 |
1408c22a54141321240e5d59cf20d6b4
|
|
| BLAKE2b-256 |
507788ef92f8c5c9f12c7e7518199feddf8211f7629ef2a9f66e4951cd69f33c
|