Git Product home page Git Product logo

pyrpc's Introduction

INTRODUCTION

Pyrpc is one small implementation of google protobuf RPC, programing by python. It may be used for building server prototype rapidly, only need write the implementation class of rpc service, and list it in the server_setting.py.

On the server side, pyrpc uses epoll to dispatch network I/O events, supporting multi-thread. The thread model is one epoll dispatcher per thread.
On client side, pyrpc generates proxy automatically, using synchronized call.
See test/echo_service.py, test/test_client.py for usage.

Best regards.


Pyrpc 是python语言编写的一个google protobuf RPC 小型实现,完整实现了RPC 服务端和客户端,只需要 service 接口实现类在 server_setting.py 中注册即可搭建服务,方便快速建立服务原型。

在服务端,采用epoll作为网络I/O 时间分派处理,支持多线程并发,线程模型为每线程独立dispatcher (一个epoll事件调度处理器);
在客户端,pyrpc 自动生成调用代理,采用同步调用模型;
具体用法参见 test/echo_service.py 和 test/test_client.py.

敬请赐教。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.