Skip to main content

Celery bulk tasks

Project description

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bulk_task-0.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

bulk_task-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file bulk_task-0.0.2.tar.gz.

File metadata

  • Download URL: bulk_task-0.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for bulk_task-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ffd459b458b3010067e871f711a933204d5c0295c26695f5852f25806925c158
MD5 d8ea3068b391d817cf57aaa98d3c64b2
BLAKE2b-256 0d109593990d6a7432b6d3f7d93cc9f04a3b37559c2b8b093c67671ef7eae1af

See more details on using hashes here.

File details

Details for the file bulk_task-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: bulk_task-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for bulk_task-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 144afc62e159a61bb6148806c6ca5e555a2e20d94ccb1473d4d27b4e2c1ae408
MD5 d91b86087b9ead8bee84344a718e6d23
BLAKE2b-256 0afdb2a60b864f60ca5de9f6e1d8a91945960e5fd0d8a5062e4a206e05b9acc7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page