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
pyenv install 3.8.0
pyenv virtualenv 3.8.0 app_3.8
pyenv activate app_3.8
import replicators.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.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for replicators-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70baac10410700312ae5510eafa3c3f3c4ea181138f2da95fdffa5b8b231c16a |
|
MD5 | de953065db0367c38d1e9f5c40c3ce8e |
|
BLAKE2b-256 | b6cd9e4b8ab181d5a256bc598cc2f263af5d6bb2da40cb755f9a14287843f800 |