Metadata-Version: 2.1
Name: cjm-parallel-utils
Version: 0.0.1
Summary: Utility functions for parallel operations.
Home-page: https://github.com/cj-mills/cjm-parallel-utils
Author: cj-mills
Author-email: millscj.mills2@gmail.com
License: Apache Software License 2.0
Keywords: nbdev jupyter notebook python
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

cjm-parallel-utils
================

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

## Install

``` sh
pip install cjm_parallel_utils
```

## How to use

### parallel

``` python
from cjm_parallel_utils.core import parallel
from functools import partial

test_array = list(range(10))
print(test_array)

def test_func(index, array):
    array[index]*=2
    
partial_func = partial(test_func, array=test_array)
parallel(partial_func, arr=range(len(test_array)), leave=True);

print(test_array)
```

    [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

      0%|          | 0/10 [00:00<?, ?it/s]

    [0, 2, 4, 6, 8, 10, 12, 14, 16, 18]
