availability

Availability for the post-processing module. (qurry.process.availability)

qurry.process.availability.BACKEND_TYPES: list[Literal['Cython', 'Rust', 'Python'] | str] = ['Python', 'Cython', 'Rust', 'JAX']

The backend types for post-processing. - Python: The default backend for post-processing. - Cython: The Cython backend for post-processing. - Rust: The Rust backend for post-processing. - JAX: The Python backend for post-processing with JAX.

qurry.process.availability.PostProcessingBackendLabel

The backend label for post-processing.

alias of Literal[‘Cython’, ‘Rust’, ‘Python’] | str

qurry.process.availability.availablility(module_location: str, import_statement: list[tuple[Literal['Cython', 'Rust', 'Python'] | str, bool | Literal['Depr.'], ImportError | None]]) tuple[str, dict[Literal['Cython', 'Rust', 'Python'] | str, Literal['Yes', 'Error', 'Depr.', 'No']], dict[Literal['Cython', 'Rust', 'Python'] | str, ImportError | None]][source]

Returns the availablility of the post-processing backend.

Parameters:
  • module_location (str) – The location of the module.

  • ( (import_statement) – list[tuple[PostProcessingBackendLabel, bool, Optional[QurryPostProcessingError]]]

  • ) – The import statement for the post-processing backend.

Returns:

tuple[

str, dict[PostProcessingBackendLabel, Literal[“Yes”, “Error”, “Depr.”, “No”]], dict[PostProcessingBackendLabel, Optional[QurryPostProcessingError]

]:

The location of the module, the availablility of the post-processing backend and the errors.

qurry.process.availability.default_postprocessing_backend(rust_available=False, cython_available=False)

Return the default post-processing backend.

Parameters:
  • rust_available (bool) – Rust availability.

  • cython_available (bool) – Cython availability.

Returns:

The default post-processing backend.

Return type:

PostProcessingBackendLabel