A light-weight library to efficiently run series of asynchronous and synchronous tasks concurrently without worrying about managing different threads on your own.
Project description
PyExecutors - A simple multi-threading task management library
PyExecutors is a utility module which provides straight-forward, powerful functions for working with asynchronous python functions.
This runs an array of functions in series. You can program the functions to run synchronously or asynchronously in the order you desire.
Installation
pip install pyexecutors
Then, from a python interpreter
from pyexecutors.executors.Executors import SyncTasks, AsyncTasks, Executors
def execute_method(exec_thread_number):
// your function
Executors() \
.enqueue(AsyncTasks(execute_method, args=(1,))) \
.enqueue(AsyncTasks(execute_method, args=(2,))) \
.enqueue(SyncTasks(execute_method, args=(3,))) \
.enqueue(AsyncTasks(execute_method, args=(4,))) \
.execute()
License
This project is licensed under the MIT License - see the LICENSE.md file for details
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
pyexecutors-0.1.5.tar.gz
(3.5 kB
view hashes)