Metadata-Version: 2.1
Name: bulk_task
Version: 0.0.1
Summary: Celery bulk tasks
Home-page: https://github.com/buserbrasil/bulk-task
Author: Walison Filipe
Author-email: walisonfilipe@hotmail.com
License: MIT
Description: # bulk-task
        
        Package bulk-task provide an easy way to call lazy functions in bulk.
        
        ## Installation
        
        ```
        $ pip install bulk-task
        ```
        
        ## Example
        
        ```python
        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()
        ```
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Description-Content-Type: text/markdown
