lookback.api#

API.

Module Contents#

Functions#

indent_report

Indent all headings in a report and give it a top-level heading.

agg_comments

Aggregate comments by their header.

split_comment

Split a comment with multiple headers into comments representing one header.

sort_comments

Sort comments in chronological order.

filter_comments

Filter comments.

get_comments

Get comments in chronological order.

Data#

API#

lookback.api.SPACE#

‘ ‘

lookback.api.HEAD3#

‘###’

lookback.api.ANY_HEAD_CONTENTS#

‘compile(…)’

lookback.api.HEAD3_TOKEN#

‘compile(…)’

lookback.api.MISC_HEADING#

None

lookback.api.indent_report(
report: str,
title: str,
) str#

Indent all headings in a report and give it a top-level heading.

lookback.api.agg_comments(
comments: list[lookback.board.Action],
) list[lookback.board.Action]#

Aggregate comments by their header.

lookback.api.split_comment(
comment: lookback.board.Action,
) list[lookback.board.Action]#

Split a comment with multiple headers into comments representing one header.

lookback.api.sort_comments(
comments: list[lookback.board.Action],
) list[lookback.board.Action]#

Sort comments in chronological order.

lookback.api.filter_comments(
comments: list[lookback.board.Action],
card: str = '',
days: int = 0,
)#

Filter comments.

lookback.api.get_comments(
board: lookback.api.get_comments.board,
) list[lookback.api.get_comments.board]#

Get comments in chronological order.