Skip to main content

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.

0.3 (I forget)

  • Stop doing changelog because I’m too lazy. :)

0.5.5 (last one)

  • Added command-line argument support.

Project details


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.5.8.tar.gz (25.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page