Skip to main content

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.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrpcd-0.0.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file pyrpcd-0.0.5.tar.gz.

File metadata

  • Download URL: pyrpcd-0.0.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for pyrpcd-0.0.5.tar.gz
Algorithm Hash digest
SHA256 aaa6867f56046a472f7474474e9d91d6af6f95107694469d86ef0d1c511d3639
MD5 cf4a89f70f260285130e13ac6a51fc16
BLAKE2b-256 aea123a09995a49f0c8516b2512a262d2c436e04a6fb07a8ddc8884785df6b32

See more details on using hashes here.

File details

Details for the file pyrpcd-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyrpcd-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for pyrpcd-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 28bee8ac90c7f62528a12b825017e08554e9fc80a1715a11f69db17db44c4010
MD5 16e8542a09346832dbe33af2b7a27a69
BLAKE2b-256 792201316e21ecdc9b0b9209d831725b24ff3f275ebac27444e92092bf1786a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page