Skip to content
A simple library to execute a queue of asynchronous and synchronous tasks.
Python
Branch: master
Clone or download
tanmay_majumdar
tanmay_majumdar polls added
Latest commit dc499f4 Jan 27, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pyexecutors docs creation Jan 24, 2020
.gitignore gitignore updated Jan 24, 2020
.travis.yml removed python 3.4 from travis.yml Nov 4, 2019
LICENSE.md license and docs updated Jan 24, 2020
MANIFEST setup.py packages modified Nov 3, 2019
README.md polls added Jan 27, 2020
azure-pipelines.yml Update azure-pipelines.yml for Azure Pipelines Nov 4, 2019
requirements.txt upgraded pytest version Nov 4, 2019
setup.cfg doc updated Jan 24, 2020
setup.py polls added Jan 27, 2020

README.md

PyExecutors - A simple multi-threading task management library

Travis Passing PyPI version PyPI Downloads PyPI license Downloads

Are you great with multi-threading?

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

You can’t perform that action at this time.