Python遠程方法調用 RPyC
rpyc (Remote Python Call)為分布式計算環境提供了優良的基礎平臺。 使用rpyc編寫c/s結構程序,完全不用考慮老式的socket編程,現在只用編寫簡單的3、5行代碼即可完成以前的數千行代碼的功能。
Remote Python Call (RPyC) 是一個 Python 的庫用來實現 RPC 和分布式計算的工具。支持同步和異步操作、回調和遠程服務以及透明的對象代理。
功能特性:
- 透明- 訪問遠程對象就像本地一樣。現在有的代碼能夠無縫兼容本地和遠程對象。
- 對稱- the protocol itself is completely symmetric, meaning both client and server can serve requests. This allows, among other things, for the server to invoke callbacks on the client side.
- 支持同步和異步操作
- 平臺無關 - 32/64 bit, little/big endian, Windows/Linux/Solaris/Mac... access objects across different architectures.
- 低開銷 - RpyC takes an all-in-one approach, using a compact binary protocol, and requiring no complex setup (name servers, HTTP, URL-mapping, etc.)
- 安全 - employs a Capability based security model
- 能夠與TLS/SSL,SSH 和 inetd集成使用

本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!