File "search.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/usr/lib/python2.7/site-packages/pip/commands/search.pyc
File size: 4.84 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit


abc@@s4ddlmZddlZddlZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZejeZdefdYZ dZ!dddZ#dZ$dS(i(tabsolute_importN(tCommandtSUCCESS(tOrderedDict(tPipXmlrpcTransport(tPyPI(tget_terminal_size(t
indent_log(tCommandError(tNO_MATCHES_FOUND(tparse(t
pkg_resources(t
xmlrpc_clientt
SearchCommandcB@s;eZdZdZdZdZdZdZdZRS(s@Search for PyPI packages whose name or summary contains <query>.tsearchs
      %prog [options] <query>sSearch PyPI for packages.cO@satt|j|||jjdddddddtjdd	|jjd
|jdS(Ns-is--indextdesttindextmetavartURLtdefaultthelps3Base URL of Python Package Index (default %default)i(	tsuperR
t__init__tcmd_optst
add_optionRtpypi_urltparsertinsert_option_group(tselftargstkw((s7/usr/lib/python2.7/site-packages/pip/commands/search.pyRs			cC@s||stdn|}|j||}t|}d}tjjr^td}nt|d||rxt	St
S(Ns)Missing required argument (search query).itterminal_width(RRttransform_hitstNonetsyststdouttisattyRt
print_resultsRR	(RtoptionsRtqueryt	pypi_hitsthitsR((s7/usr/lib/python2.7/site-packages/pip/commands/search.pytrun)scC@sj|j}|j|L}t||}tj||}|ji|d6|d6d}|SWdQXdS(Ntnametsummarytor(Rt_build_sessionRRtServerProxyR(RR'R&t	index_urltsessiont	transporttpypiR)((s7/usr/lib/python2.7/site-packages/pip/commands/search.pyR9s	 (	t__name__t
__module__t__doc__R+tusageR,RR*R(((s7/usr/lib/python2.7/site-packages/pip/commands/search.pyR
s		cC@st}x|D]}|d}|d}|d}||jkrki|d6|d6|gd6||<q||dj||t||dkr|||d<qqWt|jS(s
    The list from pypi is really a list of versions. We want a list of
    packages with the list of versions stored inline. This converts the
    list from pypi into one we can use.
    R+R,tversiontversions(Rtkeystappendthighest_versiontlisttvalues(R)tpackagesthitR+R,R8((s7/usr/lib/python2.7/site-packages/pip/commands/search.pyR Bs	



c
C@s|s
dS|dkrctg|D]3}t|dt|jddgd^q d}ngtjD]}|j^qm}xb|D]Z}|d}|dpd}|jddgd}|dk	r||d}	|	d	krtj||	}d
d|dj	|}qnd
|d||f|f}
yt
j|
||krtj|}t
]t|d}|j|krt
jd|jn#t
jd|jt
jd|WdQXnWqtk
rqXqWdS(NR+R9t-iiR,tii
s
t is	%-*s - %ss%s (%s)sINSTALLED: %s (latest)s
INSTALLED: %ss
LATEST:    %s(R!tmaxtlentgetRtworking_settproject_namettextwraptwraptjointloggertinfotget_distributionRR<R8tUnicodeEncodeError(
R)tname_column_widthRR@tptinstalled_packagesR+R,R8ttarget_widthtlinetdisttlatest((s7/usr/lib/python2.7/site-packages/pip/commands/search.pyR%^s>=


!


cC@st|dtS(Ntkey(RDt
parse_version(R9((s7/usr/lib/python2.7/site-packages/pip/commands/search.pyR<s(%t
__future__RtloggingR"RItpip.basecommandRRt
pip.compatRtpip.downloadRt
pip.modelsRt	pip.utilsRtpip.utils.loggingRtpip.exceptionsRtpip.status_codesR	tpip._vendor.packaging.versionR
RXtpip._vendorRtpip._vendor.six.movesRt	getLoggerR4RLR
R R!R%R<(((s7/usr/lib/python2.7/site-packages/pip/commands/search.pyt<module>s&+	&