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 details)

Uploaded Source

File details

Details for the file batchelor-0.5.8.tar.gz.

File metadata

  • Download URL: batchelor-0.5.8.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3

File hashes

Hashes for batchelor-0.5.8.tar.gz
Algorithm Hash digest
SHA256 69582162e27891a577d29f650757fa9817369ebf0de6297c1f3ff7f0c7e215b8
MD5 042eb71c8094f45600c713c6a2abe8b5
BLAKE2b-256 959c681aeec92cbb3ee963125240470557282daf71cb389f4ea4e9cbacfbd2fe

See more details on using hashes here.

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