Skip to content

Instantly share code, notes, and snippets.

@dcolish
Created May 12, 2011 19:37
Show Gist options
  • Select an option

  • Save dcolish/969265 to your computer and use it in GitHub Desktop.

Select an option

Save dcolish/969265 to your computer and use it in GitHub Desktop.
Simple printer of nester list printers
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