abstraction for concurrency and multithreading
Project description
replicators
description
This is a personal package used to hold code patterns used for multithreading and multiprocessing.
usage
pip install replicator
import replicant.multiprocess as mult
data_frame: pd.DataFrame = pd.DataFrame(
columns=["This",
"is",
"a",
"test",
"to",
"check",
"a_function"],
data=[[5, 2, "b", 3, 4, 5, 3],
[7, 2, "b", 3, 4, 5, 3],
[8, 2, "b", 3, 4, 5, 3],
[3, 2, "b", 3, 4, 5, 3],
[2, 2, "b", 3, 4, 5, 3],
[8, 2, "b", 3, 4, 5, 3],
[2, 2, "b", 3, 4, 5, 3],
[8, 2, "b", 3, 4, 5, 3],
[19, 2, "b", 3, 4, 5, 3],
[53, 2, "b", 3, 4, 5, 3],
[11, 2, "b", 3, 4, 5, 3],
[16, 2, "b", 3, 4, 5, 3]])
data: list = list(data_frame.T.to_dict().values())
mult.multiprocess_me(1, print, data, False)
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
replicators-1.2.0.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for replicators-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c50ce193df7ab4050eb3b51384dca0d5b02705690ef4d2cb2863de3303dd8268 |
|
MD5 | 928986501b648ed3c3052a8c85b79882 |
|
BLAKE2b-256 | 6a14688a201424d78c41bf8d3bcfe2b18f301266b37982546d47a15b61c5239c |