有没有类似于分布式Ruby的Python模块

2024-05-16 09:01:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我是Python新手。只想知道python中有没有类似于ruby drb的模块?像客户端可以使用drb服务器提供的对象吗?在


Tags: 模块对象服务器客户端ruby新手drb
3条回答

Pyro执行我认为您描述的内容(尽管我没有使用drb)。在

从网站:

Pyro is short for PYthon Remote Objects. It is an advanced and powerful Distributed Object Technology system written entirely in Python, that is designed to be very easy to use. Never worry about writing network communication code again, when using Pyro you just write your Python objects like you would normally. With only a few lines of extra code, Pyro takes care of the network communication between your objects once you split them over different machines on the network. All the gory socket programming details are taken care of, you just call a method on a remote object as if it were a local object!

标准的multiprocessing模块可以执行您想要的操作。在

这通常称为“对象代理”,通过浏览Python包索引here的对象代理主题区域,可以找到该区域中一些Python包的列表。在

其中最古老、使用最广泛的是Pyro。在

相关问题 更多 >