Bundle Objects

class Bundle()
This class allows to perform operations in bundles to improve performance by reducing number of network calls. It is not supposed to be instantiated directly by a user. Use :meth:encord.project.Project.create_bundle() method to initiate bundled operations. To execute batch you can either call :meth:.execute() directly, or use a Context Manager.

add

def add(operation: Callable[..., List[R]],
        result_mapper: Optional[BundleResultMapper[R]],
        payload: BundlablePayloadT, limit: int) -> None
This is an internal method and normally is not supposed to be used externally. Adds an operation to a bundle for delayed execution.

execute

def execute() -> None
Executes all scheduled operations in bundles and populates results