AlkantarClanX12
Current Path : /proc/self/root/usr/lib/python2.7/site-packages/pip/commands/ |
Current File : //proc/self/root/usr/lib/python2.7/site-packages/pip/commands/search.pyo |
� ��abc @@ s4 d d l m Z d d l Z d d l Z d d l Z d d l m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z e j e � Z d e f d � � YZ d � Z! d d d � Z# d � Z$ d S( i ( t absolute_importN( t Commandt SUCCESS( t OrderedDict( t PipXmlrpcTransport( t PyPI( t get_terminal_size( t indent_log( t CommandError( t NO_MATCHES_FOUND( t parse( t pkg_resources( t xmlrpc_clientt SearchCommandc B@ s; e Z d Z d Z d Z d Z d � Z d � Z d � Z RS( s@ Search for PyPI packages whose name or summary contains <query>.t searchs %prog [options] <query>s Search PyPI for packages.c O@ sa t t | � j | | � | j j d d d d d d d t j d d �| j j d | j � d S( Ns -is --indext destt indext metavart URLt defaultt helps3 Base URL of Python Package Index (default %default)i ( t superR t __init__t cmd_optst add_optionR t pypi_urlt parsert insert_option_group( t selft argst kw( ( s7 /usr/lib/python2.7/site-packages/pip/commands/search.pyR s c C@ s| | s t d � � n | } | j | | � } t | � } d } t j j � r^ t � d } n t | d | �| rx t St S( Ns) Missing required argument (search query).i t terminal_width( R R t transform_hitst Nonet syst stdoutt isattyR t print_resultsR R ( R t optionsR t queryt pypi_hitst hitsR ( ( s7 /usr/lib/python2.7/site-packages/pip/commands/search.pyt run) s c C@ sj | j } | j | � �L } t | | � } t j | | � } | j i | d 6| d 6d � } | SWd QXd S( Nt namet summaryt or( R t _build_sessionR R t ServerProxyR ( R R'