parallel_pro is a simple package for parallel processing
Project description
parallel_pro
parallel_pro is a simple package for parallel processing.
Installation
pip install parallel_pro
How to use
from parallel_pro import run_parallel
from datetime import datetime
def test(data):
ss = list()
for i in data:
ss.append(i * 2)
return ss
def main():
start = datetime.now()
data = run_parallel(list_of_data=list(range(100)), process_fun=test,workers=4,
verbose=False)
end = datetime.now()
# print(data)
diff = end - start
print(diff.total_seconds() / 60)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parallel_pro-0.0.1.tar.gz
(2.7 kB
view details)
File details
Details for the file parallel_pro-0.0.1.tar.gz
.
File metadata
- Download URL: parallel_pro-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 052f9672d9ef4ecc1a1912e6389dcc13c96bace13f155f6ceecb7fd90f4b8498 |
|
MD5 | 887df0afb9e9f70beeb64bfe2822a507 |
|
BLAKE2b-256 | 0839aa56101ed1178cc713cfb836d47625f0f58e403573a6a329009dfb71df96 |