Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Snippet for "Why Refactoring? How to Refactor/Restructure Python Package?" https://hackernoon.com/why-refactoring-how-to-restructure-python-package-51b89aa91987
"""
Package: utils.config
before restructuring
"""
CONFIG_NAME = {
"ENABLE_LOGGING": "enable_logging",
"LOGGING_LEVEL": "logging_level",
}
def get_logging_level():
pass
class ConfigHelper:
def get(self, config_name, default=None):
pass
def set(self, config_name, value):
pass
def _get_settings_helper(self):
pass
def get_logging_level():
pass
def is_logging_enabled():
pass
class LOGGING_LEVEL:
VERBOSE = "verbose"
STANDARD = "standard"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment