我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用pip._vendor.six.moves.xmlrpc_client.ServerProxy()。
def search(self, query, options): index_url = options.index with self._build_session(options) as session: transport = PipXmlrpcTransport(index_url, session) pypi = xmlrpc_client.ServerProxy(index_url, transport) hits = pypi.search({'name': query, 'summary': query}, 'or') return hits