Skip to content

taipeipy/revivalkit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Revival Kit

Let's revive from Ctrl-C or any exception!

01_consume_queue.py_demo.gif

The code of 01_consume_queue.py:

from time import sleep
from revivalkit import revive

o = revive()
if not hasattr(o, 'que'):
    o.que = list(range(10))

print('current que: ', o.que)
while o.que:
    sleep(0.25)
    print('consumed', o.que.pop())

Install via pip

pip install revivalkit

It supports both Python 2 and Python 3.

Doc?

I'm still working on it. Please read the examples or just the source code.

Thanks

Thanks uranusjr and ypsun's help at Taipei.py Projects On. :D

About

Revive from Ctrl-C or any exception!

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%