abstraction for concurrency and multithreading
Project description
replicator
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.1.0.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for replicators-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adbc33b389fa17d683af04490c4123e4efe00050c3f54af507aa676a025b9f63 |
|
MD5 | 507b06996c00d5e2030dc1160038c81e |
|
BLAKE2b-256 | c8e4912be99daec10924b212f25c04f900d1d5dffba15d015e0dbdb627868152 |