Skip to main content

This description is under construction.

Parallel Computing Tools (This is a tool to achieve clear and safe management of memory and other resources by separating parallel computations in units of files.)

並列計算ツール (ファイルの単位で並列計算を実施することで、メモリ等の管理を明快かつ安全に実現するツールです。)

  • pythonの並列処理はメモリ管理がよくわからん (不安な気持ちになる)
  • そこで、いっそのことファイルごと別プロセスで立ち上げるような並列処理を考えた

マスター側

from mult import master

input_ls = [i for i in range(10)]
output_ls = master.call(
	"path_to_slave/slave.py",	# スレーブファイル名
	input_ls,	# 入力のリスト (ジョブごと)
	n = 4,	# 並列数
	job_order = "ordered",	# ジョブ実行順序 (random, ordered)
	progress = True	# 進捗表示
)
print(output_ls)	# 結果の確認

スレーブ側 (slave.py)

import time, random
from mult import slave

# 実行したい処理
def heavy_process(num):
	time.sleep(random.random()*3)
	return 2**num

num = slave.get_input()
result = heavy_process(num)
slave.send_output(result)

Metadata

Release files for mult 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mult 1.1.1
File Size Uploaded Provenance
mult-1.1.1.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mult 1.1.1
File Interpreter ABI Platform
mult-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.6 kB

Release files / mult-1.1.1.tar.gz

Download URL mult-1.1.1.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e932515d88994e9e2cdbb8e78c6d466b3d4c7805951e7f77ef3c8057c5676044
BLAKE2b-256 checksum
How to use checksums
d0d70b93ba3fb0252d96b7af3548e879ed7c9f2af7b0bbbe6fd5371d7ecaa44b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

Release files / mult-1.1.1-py3-none-any.whl

Download URL mult-1.1.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
439d20c490d24115f019862dde05e6c2ca3079855e5840a773d8c3a226a0bbc8
BLAKE2b-256 checksum
How to use checksums
fdbf269c2164192e3c6803f85571cc9ebf614a00b3808fa1af363ade1a023e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

Security for mult 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page