@memoize
def make_env_key(app_name, key):
 key = key.replace('-', '_').replace(' ', '_')
 return str('_'.join((x.upper() for x in (app_name, key))))

@ memoize def make_env_key ( app_name , key ) : key = key . replace ( '-' , '_' ) . replace ( ' ' , '_' ) return str ( '_' . join ( ( x . upper ( ) for x in ( app_name , key ) ) ) )
creates an environment key-equivalent for the given key .