notes.toggl
#
Toggl events.
Derived from https://gist.github.com/blakeNaccarato/8e114a7216da6ce7f7882fd77ab8c5cd
Module Contents#
Classes#
Event. |
|
Entries. |
|
Preferences. |
Functions#
API#
- notes.toggl.IdField()#
Field as it is named in the database. Allows the SQLModel field name to vary.
- notes.toggl.DbField( )#
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 allowself
as a field name.- __tablename__#
‘TimelineEvents’
- 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 allowself
as a field name.- __tablename__#
‘TimeEntries’
- 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 allowself
as a field name.