Nameko v3.0.0-rc3 Release Notes

Release Date: 2019-01-05 // over 5 years ago
    • 🔧 Configuration loaded from a file or declared in the CLI is now available in a global object.

    Example:

    from nameko.messaging import Consumerfrom nameko import configclass Service: @consume( queue=Queue( exchange=config["MY\_EXCHANGE"], routing\_key=config["MY\_ROUTING\_KEY"], name=config["MY\_QUEUE\_NAME"] ), prefetch\_count=config["MY\_CONSUMER\_PREFETCH\_COUNT"] ) def consume(self, payload): pass
    
    • 🔧 Configuration may now be declared on the CLI:

      $ nameko run service \ --define AMQP_URI=pyamqp://user:pass@host/vhost \ --define MY_EXCHANGE="exchange" \ --define MY_ROUTING_KEY="route" \ --define MY_QUEUE_NAME="queue" \ --define MY_PREFETCH_COUNT=100 \

    • 🔧 Configuration access via the service container is now deprecated.

    • 🔧 Builtin extensions and other facilities that read the configuration now access it via the global