Skip to main content

A microservices framework for Python that lets service developers concentrate on application logic and encourages testability.

Project description

https://secure.travis-ci.org/nameko/nameko.svg?branch=master

[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)

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, ナメコ!'

Features

  • AMQP RPC and Events (pub-sub)

  • HTTP GET, POST & websockets

  • CLI for easy and rapid development

  • Utilities for unit and integration testing

Getting Started

Support

For help, comments or questions, please go to https://discourse.nameko.io/.

For enterprise

Available as part of the Tidelift Subscription.

The maintainers of Nameko and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Security contact information

To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.

Contribute

  • Fork the repository

  • Raise an issue or make a feature request

License

Apache 2.0. See LICENSE for details.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nameko-2.14.0.tar.gz (177.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nameko-2.14.0-py2.py3-none-any.whl (76.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nameko-2.14.0.tar.gz.

File metadata

  • Download URL: nameko-2.14.0.tar.gz
  • Upload date:
  • Size: 177.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for nameko-2.14.0.tar.gz
Algorithm Hash digest
SHA256 81474e98165ad9f5df63db3aba671e894fa788e83bbf53b02099ea385fce805d
MD5 937ff8533cf08e800eb0302c5fe3a579
BLAKE2b-256 802bcf5bf696cf81c4f47eb4d2c4fabfb44148f310b0ab346b64b6aba28f5334

See more details on using hashes here.

File details

Details for the file nameko-2.14.0-py2.py3-none-any.whl.

File metadata

  • Download URL: nameko-2.14.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 76.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for nameko-2.14.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8f22b249be6a78d6693b383ac73bd372653b4b31178fe1f5637fc8ad9bc49f2f
MD5 03fc0cdeb4dcd77af3ae4c473c54d955
BLAKE2b-256 d53e5eb2d25b0f1305354566d0a4b9de8801d74aafce304a572885b99071d7d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page