<s> import os <EOL> from . utils import read_planet_json <EOL> ENV_KEY = '<STR_LIT>' <EOL> class APIKey ( object ) : <EOL> def __init__ ( self , value ) : <EOL> self . value = value <EOL> def find_api_key ( ) : <EOL> api_key = os . getenv ( ENV_KEY ) <EOL> if api_key is None : <EOL> contents = read_planet_json ( ) <EOL> api_key = contents . get ( '<STR_LIT:key>' , None ) <EOL> return api_key </s>
