Skip to main content

parally

A python package to distribute CPU-intensive tasks by sending workload to other connected computers

Status

flake8

pytest-unit-tests

Documentation

The documentation for this package can be found here.

Usage

To use the package, run the following command in the terminal:

pip install parally

Development

To install the package, make sure conda is installed and then run the following commands in the terminal:

# Clone the repository
git clone https://github.com/acse-ci223/parally.git

# Change directory
cd parally

# Create the 'parally' environment
conda env create -f environment.yml

# Activate the environment
conda activate parally

# Install the package
pip install -e .

Examples

Example 1: Distributing a simple task

server.py

from parally import Server

HOST = "localhost"
PORT = 5000

parameters = [{"a": 1, "b": 2}, {"a": 3, "b": 4}, {"a": 5, "b": 6}]

def completed_task(result):
    print(result)

server = Server(HOST, PORT)
server.bind_parameters(parameters)
server.on_completed(completed_task)
server.on_error(lambda error: print(error))
server.start()

client.py
from parally import Client

HOST = "localhost"
PORT = 5000


def my_function(params):
    a = params['a']
    b = params['b']
    return a + b

client = Client(HOST, PORT)
client.run_function(my_function)
client.start()

Metadata

Release files for parally 1.3.0

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

Source distribution (sdist)

Source distribution for parally 1.3.0
File Size Uploaded Provenance Actions
parally-1.3.0.tar.gz 2.9 MB Without provenance Details for parally-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.9 MB

Release files / parally-1.3.0.tar.gz

Download URL parally-1.3.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
1c0064b9755d26bde6c9072e4d91aa07999b22f8b13c8f901544751fa75f9c51
BLAKE2b-256 checksum
How to use checksums
702ccef38fa0130b455c32f39264cd5425b7aad8aaddf841c7a0c39d79bb493a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / parally-1.3.0-py3-none-any.whl

Download URL parally-1.3.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94f75dce4e088a33180d7d407ac7d98c50d86231422aeba311d07f1f55220809
BLAKE2b-256 checksum
How to use checksums
01ca7ae8e63dee68eec39609801e119df22817790d24b86d2ae54db55f356343
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for parally 1.3.0

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