<s> from lib . mmonit import MmonitBaseAction <EOL> class MmonitSessionGet ( MmonitBaseAction ) : <EOL> def run ( self , session_key = "<STR_LIT>" ) : <EOL> self . login ( ) <EOL> data = { "<STR_LIT:key>" : session_key } <EOL> req = self . session . post ( "<STR_LIT>" . format ( self . url ) , data = data ) <EOL> try : <EOL> return req . json ( ) <EOL> except Exception : <EOL> raise <EOL> finally : <EOL> self . logout ( ) </s>
