kaquel.utils – General utilities

class kaquel.utils.Runk(*, line: int = 1, column: int = 1, offset: int = 0)

Bases: BaseModel

Ronald’s universal number kounter.

This counts lines, columns and offsets.

line: int

Line number, counting from 1.

column: int

Column number, counting from 1.

offset: int

Offset in the string, counting from 0.

count(raw: str, /) None

Add a string to the count.

Parameters:

raw – Raw string to take into account.