Skip to content

Instantly share code, notes, and snippets.

@mattbennett
Created August 11, 2015 14:17
Show Gist options
  • Save mattbennett/64edafc2a4e2ba1bf123 to your computer and use it in GitHub Desktop.
Save mattbennett/64edafc2a4e2ba1bf123 to your computer and use it in GitHub Desktop.
Config DependencyProvider
from nameko.extensions import DependencyProvider
class Config(DependencyProvider):
def get_dependency(self, worker_ctx):
return self.container.config.copy()
@mattbennett
Copy link
Author

For access to config from nameko services

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment