Skip to content

Info

File information for Logseq files.

Classes:

Name Description
NodeType

Class to hold node type data.

JournalFormats

Formats for Logseq journal files and pages.

TimestampInfo

File timestamp information class.

SizeInfo

File size information class.

NamespaceInfo

NamespaceInfo class.

BulletInfo

Bullet statistics class.

LogseqFileInfo

LogseqFileInfo class.

NodeType() dataclass

Class to hold node type data.

Methods:

Name Description
check_backlinked

Check if a file is backlinked and update the node state.

check_backlinked_ns_only

Check if a file is backlinked only in its namespace and update the node state.

determine_node_type

Determine node type based on summary data.

check_backlinked(name: str, lookup: set[str]) -> None

Check if a file is backlinked and update the node state.

check_backlinked_ns_only(name: str, lookup: set[str]) -> None

Check if a file is backlinked only in its namespace and update the node state.

determine_node_type(*, has_content: bool) -> None

Determine node type based on summary data.

JournalFormats(file: str, page: str, page_title: str) dataclass

Formats for Logseq journal files and pages.

TimestampInfo(time_existed: float, time_unmodified: float, date_created: str, date_modified: str) dataclass

File timestamp information class.

SizeInfo(size: int, human_readable_size: str, has_content: bool) dataclass

File size information class.

NamespaceInfo(parent_full: str, parent: str, parts: dict[str, int], root: str, stem: str, is_namespace: bool, children: set[str] = set()) dataclass

NamespaceInfo class.

BulletInfo(chars: int, bullets: int, empty_bullets: int, char_per_bullet: float | None) dataclass

Bullet statistics class.

LogseqFileInfo(timestamp: TimestampInfo, size: SizeInfo, namespace: NamespaceInfo, bullet: BulletInfo) dataclass

LogseqFileInfo class.