compass.pipeline.runtime.PipelineRuntime#

class PipelineRuntime(request)[source]#

Bases: object

Context Object for runtime dependencies in one pipeline run

Parameters:

request (compass.pipeline.data_classes.BaseRequest) – Request object containing all user inputs and settings for this run.

Methods

Attributes

browser_semaphore

Browser concurrency limiter

crawl_semaphore

Crawl concurrency limiter

dirs

Directories object for this run

extractor_class

Return the extractor class for the configured tech

file_loader_kwargs

Loader kwargs for remote documents

file_loader_kwargs_no_ocr

Loader kwargs without OCR for website validation

jurisdiction_semaphore

Jurisdiction semaphore or inert context manager

local_file_loader_kwargs

Loader kwargs for local documents

search_engine_semaphore

Search engine concurrency limiter

tpe_kwargs

Thread pool kwargs for this run

property dirs[source]#

Directories object for this run

property tpe_kwargs[source]#

Thread pool kwargs for this run

property extractor_class[source]#

Return the extractor class for the configured tech

property browser_semaphore[source]#

Browser concurrency limiter

property crawl_semaphore[source]#

Crawl concurrency limiter

property search_engine_semaphore[source]#

Search engine concurrency limiter

property jurisdiction_semaphore#

Jurisdiction semaphore or inert context manager

property file_loader_kwargs[source]#

Loader kwargs for remote documents

Type:

dict

property local_file_loader_kwargs[source]#

Loader kwargs for local documents

Type:

dict

property file_loader_kwargs_no_ocr[source]#

Loader kwargs without OCR for website validation

Type:

dict