An easyful thread runner
Project description
TMKTProcess
How to install it
pip install tmktprocess
How to import it
from tmktprocess import Process
How to use it
def my_func(*args, **kwargs):
# do some stuff
pass
To start your process you have to do this:
process = Process(my_func)
process.start(my_args, my_kwargs)
result = process.join()
The .start() will call your function and pass the args and kwargs, then the result will be return with the .join() method
Use with Event
You can also pass an Event from
threadingpackage in init call.
from threading import Event
my_event = Event()
process = Process(my_func, my_event)
When the method will end, the event will be set
You can use it for everything you want
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tmktprocess-1.0.2.tar.gz.
File metadata
- Download URL: tmktprocess-1.0.2.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed4b9b22f41ded0b96fa373ea1a4fc052b815a5fa180693141d1142570e5faa
|
|
| MD5 |
09ff0b6b8176d8199c34e8728ddebdbd
|
|
| BLAKE2b-256 |
2630bbe02fe449046ebc21e217b2505ba1239b1370d04266be489820fd11e8bc
|
File details
Details for the file tmktprocess-1.0.2-py3-none-any.whl.
File metadata
- Download URL: tmktprocess-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38dbfd3815f9c180b59ab551e82be7ef07da4ab64172414a4e1e27834f726aaa
|
|
| MD5 |
b003044fb0cb6ec9e9719fb9643f7c89
|
|
| BLAKE2b-256 |
cdb1c716c4775bb9d1c76517f89b776f3f80f90d8a3fac8834a25237ab8de68a
|