Created
August 11, 2015 14:17
-
-
Save mattbennett/64edafc2a4e2ba1bf123 to your computer and use it in GitHub Desktop.
Config DependencyProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nameko.extensions import DependencyProvider | |
class Config(DependencyProvider): | |
def get_dependency(self, worker_ctx): | |
return self.container.config.copy() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For access to config from nameko services