- 授权协议: MIT
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/Lupino/py3k-gearman
- 软件文档: https://github.com/Lupino/py3k-gearman
软件介绍
python3 的 gearman 客户端
A python3 gearman client wraper on libgearman
# client
>>> import gearman
>>> client = gearman.Client()
>>> client.add_servers('localhost:4730')
>>> client.do('echo', 'hello')
# worker
>>> import gearman
>>> worker = gearman.Worker()
>>> worker.add_servers('localhost:4730')
>>> def echo(job):
... print(job.workload)
... job.complete(job.workload)
>>> worker.add_func('echo', echo)
>>> worker.work()
