<s> import logging <EOL> import xmlrpclib <EOL> logger = logging . getLogger ( __name__ ) <EOL> class PyPi ( object ) : <EOL> index = '<STR_LIT>' <EOL> pkglist = None <EOL> timeout = <NUM_LIT:5> * <NUM_LIT> <EOL> @ classmethod <EOL> def search ( cls , package_name ) : <EOL> client = xmlrpclib . ServerProxy ( cls . index ) <EOL> return client . package_releases ( package_name ) <EOL> @ classmethod <EOL> def package_details ( cls , package_name , version_number ) : <EOL> client = xmlrpclib . ServerProxy ( cls . index ) <EOL> return client . release_urls ( package_name , version_number ) </s>
