notes.toggl#

Toggl events.

Derived from https://gist.github.com/blakeNaccarato/8e114a7216da6ce7f7882fd77ab8c5cd

Module Contents#

Classes#

Event

Event.

Entry

Entries.

Preferences

Preferences.

Functions#

IdField

Field as it is named in the database. Allows the SQLModel field name to vary.

DbField

Field as it is named in the database. Allows the SQLModel field name to vary.

API#

notes.toggl.IdField()#

Field as it is named in the database. Allows the SQLModel field name to vary.

notes.toggl.DbField(
name: str,
sa_type,
**kwds: Any,
)#

Field as it is named in the database. Allows the SQLModel field name to vary.

class notes.toggl.Event(
**data: Any,
)#

Bases: sqlmodel.SQLModel

Event.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__tablename__#

‘TimelineEvents’

id: int#

‘IdField(…)’

filename: str#

‘DbField(…)’

title: str#

‘DbField(…)’

start_time: int#

‘DbField(…)’

end_time: int#

‘DbField(…)’

idle: int#

‘DbField(…)’

class notes.toggl.Entry(
**data: Any,
)#

Bases: sqlmodel.SQLModel

Entries.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

__tablename__#

‘TimeEntries’

id: int#

‘IdField(…)’

description: str#

‘DbField(…)’

duration: int | None#

‘DbField(…)’

class notes.toggl.Preferences(
**data: Any,
)#

Bases: sqlmodel.SQLModel

Preferences.

Initialization

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

id: int#

‘IdField(…)’

pomodoro_break_interval_in_minutes: int#

‘DbField(…)’

pomodoro_focus_interval_in_minutes: int#

‘DbField(…)’