Nameko¶
[nah-meh-koh]
A microservices framework for Python that lets service developers concentrate on application logic and encourages testability.
A nameko service is just a class:
# helloworld.py
from nameko.rpc import rpc
class GreetingService:
name = "greeting_service"
@rpc
def hello(self, name):
return "Hello, {}!".format(name)
Note
The example above requires RabbitMQ, because it’s using the built-in AMQP RPC features. RabbitMQ installation guidelines offer several installation options, but you can quickly install and run it using Docker.
To install and run RabbitMQ using docker:
$ docker run -d -p 5672:5672 rabbitmq:3
You might need to use sudo to do that.
You can run it in a shell:
$ nameko run helloworld
starting services: greeting_service
...
And play with it from another:
$ nameko shell
>>> n.rpc.greeting_service.hello(name="ナメコ")
'Hello, ナメコ!'
User Guide¶
This section covers most things you need to know to create and run your own Nameko services.
More Information¶
- About Microservices
- Benefits of Dependency Injection
- Similar and Related Projects
- Getting in touch
- Contributing
- License
- Release Notes
- Version 2.12.0
- Version 2.11.0
- Version 2.10.0
- Version 2.9.1
- Version 2.9.0
- Version 2.8.5
- Version 2.8.4
- Version 2.8.3
- Version 2.8.2
- Version 2.8.1
- Version 2.8.0
- Version 2.7.0
- Version 2.6.0
- Version 2.5.4
- Version 2.5.3
- Version 2.5.2
- Version 2.5.1
- Version 2.5.0
- Version 2.4.4
- Version 2.4.3
- Version 2.4.2
- Version 2.4.1
- Version 2.4.0
- Version 2.3.1
- Version 2.3.0
- Version 2.2.0
- Version 2.1.2
- Version 2.1.1
- Version 2.1.0
- Version 2.0.0
- Version 1.14.0
- Version 1.13.0
- Version 1.12.0
- Version 1.11.5
- Version 1.11.4
- Version 1.11.3
- Version 1.11.2
- Version 1.11.1
- Version 1.11.0
- Version 1.10.1
- Version 1.10.0
- Version 1.9.1
- Version 1.9.0
- Version 1.8.2
- Version 1.8.1
- Version 1.8.0
- Version 1.7.2
- Version 1.7.1
- Version 1.7.0
- Version 1.6.1
- Version 1.6.0
- Version 1.5.0
- Version 1.4.1
- Version 1.4.0
- Version 1.3.5
- Version 1.3.4
- Version 1.3.3
- Version 1.3.2
- Version 1.3.1
- Version 1.3.0