A simple, yet effective batching system using threadpoolexecutor.
Project description
A simple, yet effective batching system using threadpoolexecutor.
Free software: GNU Lesser General Public License v3 or later (LGPLv3+)
Installation
pip install batchelor
You can also install the in-development version with:
pip install https://github.com/ritzKraka/python-batchelor/archive/master.zip
Documentation
To use the project:
import batchelor
batch = batchelor.Batch(enumerate(['my', 'dataset']))
# batch.help() # for basic help
batch.start(lambda index, item: print(index, item)) # replace lambda with your function
Development
To run the all tests run:
tox
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.1 (2020-06-12)
First release on PyPI.
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
batchelor-0.3.1.tar.gz
(24.3 kB
view hashes)