Skip to content

Assets

Logseq Assets Analysis Module.

Classes:

Name Description
LogseqAssetsHls

Class to handle HLS assets in Logseq.

LogseqAssets

Class to handle assets in Logseq.

LogseqAssetsHls(index: FileIndex, asset_mapping: dict[str, LogseqFile] = dict(), backlinked: set[str] = set(), hls_bullets: set[str] = set(), not_backlinked: set[str] = set()) dataclass

Class to handle HLS assets in Logseq.

Methods:

Name Description
__post_init__

Initialize the LogseqAssetsHls instance.

process

Process HLS assets to analyze backlinks and bullet content.

get_asset_files

Retrieve asset files based on specific criteria.

convert_names_to_data

Convert a list of names to a dictionary of hashes and their corresponding files.

check_backlinks

Check for backlinks in the HLS assets.

Attributes:

Name Type Description
report dict[str, Any]

Generate a report of the asset analysis.

report: dict[str, Any] property

Generate a report of the asset analysis.

__post_init__() -> None

Initialize the LogseqAssetsHls instance.

process() -> None

Process HLS assets to analyze backlinks and bullet content.

get_asset_files() -> None

Retrieve asset files based on specific criteria.

convert_names_to_data() -> None

Convert a list of names to a dictionary of hashes and their corresponding files.

Check for backlinks in the HLS assets.

LogseqAssets(index: FileIndex, backlinked: set[LogseqFile] = set(), not_backlinked: set[LogseqFile] = set()) dataclass

Class to handle assets in Logseq.

Methods:

Name Description
__post_init__

Initialize the LogseqAssets instance.

process

Handle assets for the Logseq Analyzer.

update_asset_backlink

Update the asset backlink information.

yield_assets

Yield all asset files from the index.

Attributes:

Name Type Description
report dict[str, set[LogseqFile]]

Generate a report of the asset analysis.

report: dict[str, set[LogseqFile]] property

Generate a report of the asset analysis.

__post_init__() -> None

Initialize the LogseqAssets instance.

process() -> None

Handle assets for the Logseq Analyzer.

Update the asset backlink information.

yield_assets(*, backlinked: bool | None = None) -> Generator[LogseqFile]

Yield all asset files from the index.