Skip to main content

abstraction for concurrency and multithreading

Project description

Python

replicators

PyPi Package

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 details)

Uploaded Source

Built Distribution

replicators-1.2.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file replicators-1.2.1.tar.gz.

File metadata

  • Download URL: replicators-1.2.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

File hashes

Hashes for replicators-1.2.1.tar.gz
Algorithm Hash digest
SHA256 3d9759cec306d2073505f218ac9f151e384045a5427afd44de12ac8afe824d96
MD5 b79ffdf16f17db28d9757d141b38c7bf
BLAKE2b-256 3d2eea1f99b7f80bc95d13650452b29a7cba43bf8095a6cbb150b62db078d238

See more details on using hashes here.

File details

Details for the file replicators-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: replicators-1.2.1-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.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

File hashes

Hashes for replicators-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70baac10410700312ae5510eafa3c3f3c4ea181138f2da95fdffa5b8b231c16a
MD5 de953065db0367c38d1e9f5c40c3ce8e
BLAKE2b-256 b6cd9e4b8ab181d5a256bc598cc2f263af5d6bb2da40cb755f9a14287843f800

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page