A collection of patterns to use over top of the built in multiprocessing package
Project description
mp_boilerplate
A collection of patterns to use over top of the built in multiprocessing package.
Install
pip install mp_boilerplate
Use Case
def process_int(i):
return i + 1
worker = pat.MultiWorker(process_int)
worker.start()
for i in range(100):
worker.add_task(i)
worker.finished_adding_tasks()
for item in worker.get_results():
print(item)
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
mp_boilerplate-0.2.0.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file mp_boilerplate-0.2.0.tar.gz
.
File metadata
- Download URL: mp_boilerplate-0.2.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ef84d2f155c3b2e43e1fca04bbf10a635a4a22c71400dc8988ae309529fbb5 |
|
MD5 | 0ac28fda87a042751f4cacc1b876b6b4 |
|
BLAKE2b-256 | 2ee8d7741b9c2cb5c956eb69c9141c967fcc949600af1b4e4df7b42947fb6b36 |
Provenance
File details
Details for the file mp_boilerplate-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: mp_boilerplate-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed0bc526e9350a819ab610ff9219306b08f5a97ddb929b1e10c82cca0b38d4d0 |
|
MD5 | 88d39fef8e594a04de704e09f6a2020a |
|
BLAKE2b-256 | 9785d4b3f71a7e8577219387f5655baad204d7516fd3998d95ea2a647da69431 |