bulk-task
Package bulk-task provide an easy way to call lazy functions in bulk.
Installation
$ pip install bulk-task
Example
from dataclasses import dataclass
from bulk_task import BulkTask
bulk_task = BulkTask()
# It can be a dataclass or a Pydantic model.
@dataclass
class DataclassModel:
name: str
@bulk_task
def func(args: List[DataclassModel]):
print(arg.name for arg in args)
# Push lazy calls.
func.push('name1')
func.push('name2')
# Bulk consume lazy calls.
bulk_task.consume()
Metadata
Release files for bulk-task 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bulk_task-0.0.2.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bulk_task-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.7 kB
Release files / bulk_task-0.0.2.tar.gz
| Download URL | bulk_task-0.0.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffd459b458b3010067e871f711a933204d5c0295c26695f5852f25806925c158
|
|
BLAKE2b-256 checksum How to use checksums |
0d109593990d6a7432b6d3f7d93cc9f04a3b37559c2b8b093c67671ef7eae1af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / bulk_task-0.0.2-py3-none-any.whl
| Download URL | bulk_task-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
144afc62e159a61bb6148806c6ca5e555a2e20d94ccb1473d4d27b4e2c1ae408
|
|
BLAKE2b-256 checksum How to use checksums |
0afdb2a60b864f60ca5de9f6e1d8a91945960e5fd0d8a5062e4a206e05b9acc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|