np1/pafy — pull request #47 by stav (2014-07-21 17:32:34+00:00)
Title: Allow cancellation of active download

I use it in my code like this:

def cancel(window):
if window.stream:
window.printstr('Cancelling {}'.format(window.stream))
window.printstr(window.stream.cancel())

https://github.com/stav/clipy