8000 GitHub - denaltro/threadex: Small extension for default Python threads
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

denaltro/threadex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Threadex

Threadex is a small package that will allow manipulate python threads: start, stop and get some data/stats.

Build

python setup.py sdist
pip install ../dist/threadex-0.0.1.tar.gz

Usage

from threadex import Thread

def func():
    return {'fizz': 'buzz'}

t = Thread(target=func)

t.start() # to start thread
t.stop() # to stop thread

t.state  # get current thread state
t.result  # get result of target function
t.uptime  # get uptime in monotonic time

About

Small extension for default Python threads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0