import os

class Config:
	"""
	General configuration parent class
	"""
	NEWS_API_KEY=os.environ.get('NEWS_API_KEY')
	NEWS_SOURCE_URL='https://newsapi.org/v2/sources?category={}&country={}&language={}&apiKey={}'
	NEWS_HEADLINES_SEARCH_URL='https://newsapi.org/v2/top-headlines?category={}&query={}&apiKey={}'
	NEWS_HEADLINES_URL='https://newsapi.org/v2/top-headlines?category={}&apiKey={}'
	NEWS_EVERYTHING_URL='https://newsapi.org/v2/everything?sources={}&apiKey={}'
	SECRET_KEY=os.environ.get('SECRET_KEY')
	

class ProdConfig(Config):
	"""
	Production configuration child class
	Args:
		Config:The parent configuration class with general configuration settings
	"""
	pass

class DevConfig(Config):
	"""
	Development configuration child class
	Args:
		Config: the parent configuration class with general configuration settings
	"""
	DEBUG= True

config_options  = {
'development':DevConfig,
'production':ProdConfig
}