Skip to content

graflo.hq.bulk._deps

The optional bulk extra, imported only when a bulk run needs it.

Functions:

duckdb()

The duckdb module.

Raises:

Type Description
RuntimeError

The bulk extra is not installed.

Source code in graflo/hq/bulk/_deps.py
def duckdb() -> ModuleType:
    """The ``duckdb`` module.

    Raises:
        RuntimeError: The ``bulk`` extra is not installed.
    """
    return _import("duckdb")

require()

Fail now, naming the extra, if a bulk run could not fold.

Raises:

Type Description
RuntimeError

The bulk extra is not installed.

Source code in graflo/hq/bulk/_deps.py
def require() -> None:
    """Fail now, naming the extra, if a bulk run could not fold.

    Raises:
        RuntimeError: The ``bulk`` extra is not installed.
    """
    duckdb()
    zstandard()

zstandard()

The zstandard module.

Raises:

Type Description
RuntimeError

The bulk extra is not installed.

Source code in graflo/hq/bulk/_deps.py
def zstandard() -> ModuleType:
    """The ``zstandard`` module.

    Raises:
        RuntimeError: The ``bulk`` extra is not installed.
    """
    return _import("zstandard")