Resolves dependencies into tiers suitable for parallel work
Project description
# paradeps
## Overview
This resolves dependencies into parallelizable execution tiers. For example, given the inputs:
a, b, c, d, f
Where a and b depend on f, this will return:
[{c,d,f}, {a,b}]
## Requirements
Python 3.10+
## Installation
pip install paradeps
Or download the *.whl files and install it with `pip install *.whl`.
## Usage
from paradeps import Dependent
class Item(Dep):
...
def process_items_in_parallel(items):
...
items = [Item() for i in range(5)]
items[0].add_dependency(items[2])
items[2].add_dependency(items[4])
tiers = resolve_deps(items)
for tier in tiers:
process_items_in_parallel(tier)
## License
Released under the terms of Affero GPL version 3.0 only. See `LICENSE.txt` for further details.
## Authors / Contact
Email mailto::leebraid@gmail.com[mailto::leebraid@gmail.com].
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
paradeps-0.1.1.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
paradeps-0.1.1-py3-none-any.whl
(14.6 kB
view details)
File details
Details for the file paradeps-0.1.1.tar.gz.
File metadata
- Download URL: paradeps-0.1.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/6.0.0-5-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e500d94cc1b12eacfd35322e91a6ad403ec23889745f27d2bbd5820e2b435d9
|
|
| MD5 |
a708cbc2d8d76e3eea2a50b900d26bbd
|
|
| BLAKE2b-256 |
5c111d8adac7725559e9c28f09cf358d2f2cf36038428c197cfc180ace2a4c1b
|
File details
Details for the file paradeps-0.1.1-py3-none-any.whl.
File metadata
- Download URL: paradeps-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/6.0.0-5-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e3fd722b17773cd7071c3d1b4d1450d8346f7e1fd14bd9c696147ef03867241
|
|
| MD5 |
91c1a9e1f95df08d32b7471030860003
|
|
| BLAKE2b-256 |
8b6bc63cf4759d4f93c201341e0a306068d771bc15ef50897c92a38605fc2499
|