archivebox.services.binary_service
Module Contents
Classes
Preserve ArchiveBox’s legacy Binary Process rows around abxpkg requests. |
Functions
Mirror abxpkg subprocess-resolved binaries into ArchiveBox’s DB. |
|
API
- class archivebox.services.binary_service.ArchiveBoxBinaryService(bus: abxbus.EventBus)[source]
Bases:
abx_dl.services.base.BaseServicePreserve ArchiveBox’s legacy Binary Process rows around abxpkg requests.
Initialization
- async on_BinaryRequestEvent__project_process(request: abxpkg.binary_service.BinaryRequestEvent) None[source]
- async _get_or_create_binary(machine, binary_name: str, request: abxpkg.binary_service.BinaryRequestEvent)[source]
- async on_BinaryRequestEvent__schedule_missing_finalize(request: abxpkg.binary_service.BinaryRequestEvent) None[source]
- archivebox.services.binary_service.project_abxpkg_derived_cache_to_db(lib_dir: pathlib.Path | str | None) None[source]
Mirror abxpkg subprocess-resolved binaries into ArchiveBox’s DB.
Hook shebangs resolve binaries through the abxpkg CLI in subprocesses, so those resolutions cannot emit in-process BinaryRequestEvent/BinaryEvent objects on the ArchiveBox runner bus. abxpkg’s generic cross-process projection point is
LIB_DIR/env/derived.env; ArchiveBox imports those resolved records here after hook execution.
- archivebox.services.binary_service._provider_names(binproviders: str | list[str] | None) list[str][source]