Python 的微服务框架 Nameko

码农软件 · 软件分类 · 微服务框架 · 2019-03-18 07:26:31

软件介绍

Nameko 是一个 Python 的微服务框架,可以让你专注于应用逻辑。

主要特性:

    • AMQP RPC and Events (pub-sub)

    • HTTP GET, POST & websockets

    • 简化开发的命令行工具

    • 单元和集成测试工具

    示例代码:

# helloworld.py

from nameko.rpc import rpc

class GreetingService:
    name = "greeting_service"

    @rpc
    def hello(self, name):
        return "Hello, {}!".format(name)

运行方法:

$ nameko run helloworld
starting services: greeting_service
...

测试:

$ nameko shell
>>> n.rpc.greeting_service.hello(name="ナメコ")
'Hello, ナメコ!'

本文地址:https://codercto.com/soft/d/1593.html

An Introduction to the Analysis of Algorithms

An Introduction to the Analysis of Algorithms

Robert Sedgewick、Philippe Flajolet / Addison-Wesley Professional / 1995-12-10 / CAD 67.99

This book is a thorough overview of the primary techniques and models used in the mathematical analysis of algorithms. The first half of the book draws upon classical mathematical material from discre......一起来看看 《An Introduction to the Analysis of Algorithms》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具