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
Release files for pyrpcd 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyrpcd-0.0.6.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyrpcd-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / pyrpcd-0.0.6.tar.gz
| Download URL | pyrpcd-0.0.6.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6fc9641e6e0beec5f5a4353e60a44a36525b11853637b86e52fe23757eb3981
|
|
BLAKE2b-256 checksum How to use checksums |
d6868b0e377aac14dde6ee66b673d373758bbfd2960075408ecfaac7a8a7c0bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Release files / pyrpcd-0.0.6-py3-none-any.whl
| Download URL | pyrpcd-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
665cfe9e12ab9c23755784df73d4f49526883c9772b44703f8db87c45578e707
|
|
BLAKE2b-256 checksum How to use checksums |
7c8c626b98275577a1f4184659948dc39d109c1a6311c027289cac0dd777c173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|