Created
May 12, 2011 19:37
-
-
Save dcolish/969265 to your computer and use it in GitHub Desktop.
Simple printer of nester list printers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import xmlrpclib | |
| client = xmlrpclib.ServerProxy('http://pypi.python.org/pypi') | |
| packages = client.search({'summary': 'simple printer of nested lists'}) | |
| header = ''.join(['-'] * 80) | |
| for package in packages: | |
| print """{header} | |
| {name} - {version}: {summary}""".format(header=header, **package) | |
| print header |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment