<filename>aalib/hello.py<gh_stars>10-100
import io
import urllib2
import PIL.Image
import aalib

screen = aalib.AsciiScreen(width=80, height=40)
fp = io.BytesIO(urllib2.urlopen('https://www.python.org/static/favicon.ico').read())
image = PIL.Image.open(fp).convert('L').resize(screen.virtual_size)
screen.put_image((0, 0), image)
print screen.render()

<filename>aalib/hello.py<gh_stars>10-100
import io
import urllib2
import PIL.Image
import aalib

screen = aalib.AsciiScreen(width=80, height=40)
fp = io.BytesIO(urllib2.urlopen('https://www.python.org/static/favicon.ico').read())
image = PIL.Image.open(fp).convert('L').resize(screen.virtual_size)
screen.put_image((0, 0), image)
print screen.render()
