Skip to content

Instantly share code, notes, and snippets.

@mattbennett
Created August 11, 2015 14:17
Show Gist options
  • Select an option

  • Save mattbennett/64edafc2a4e2ba1bf123 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown
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