<s> """<STR_LIT>""" <EOL> import logging <EOL> import requests <EOL> from ndscheduler import job <EOL> logger = logging . getLogger ( __name__ ) <EOL> class CurlJob ( job . JobBase ) : <EOL> TIMEOUT = <NUM_LIT:10> <EOL> @ classmethod <EOL> def meta_info ( cls ) : <EOL> return { <EOL> '<STR_LIT>' : '<STR_LIT>' % ( cls . __module__ , cls . __name__ ) , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : [ <EOL> { '<STR_LIT:type>' : '<STR_LIT:string>' , '<STR_LIT:description>' : '<STR_LIT>' } , <EOL> { '<STR_LIT:type>' : '<STR_LIT:string>' , '<STR_LIT:description>' : '<STR_LIT>' <EOL> '<STR_LIT>' } , <EOL> ] , <EOL> '<STR_LIT>' : ( '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> } <EOL> def run ( self , url , request_type , * args , ** kwargs ) : <EOL> print ( '<STR_LIT>' % ( url ) ) <EOL> session = requests . Session ( ) <EOL> result = session . request ( request_type , <EOL> url , <EOL> timeout = self . TIMEOUT , <EOL> headers = None , <EOL> data = None ) <EOL> print ( result . text ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> job = CurlJob . create_test_instance ( ) <EOL> job . run ( '<STR_LIT>' ) </s>
