todoist.models

class todoist.models.Model(data, api)[source]

Bases: object

Implements a generic object.

class todoist.models.Collaborator(data, api)[source]

Bases: todoist.models.Model

Implements a collaborator.

delete(project_id)[source]

Deletes a collaborator from a shared project.

class todoist.models.CollaboratorState(data, api)[source]

Bases: todoist.models.Model

Implements a collaborator state.

class todoist.models.Filter(data, api)[source]

Bases: todoist.models.Model

Implements a filter.

update(**kwargs)[source]

Updates filter.

delete()[source]

Deletes filter.

class todoist.models.Item(data, api)[source]

Bases: todoist.models.Model

Implements an item.

update(**kwargs)[source]

Updates item.

delete()[source]

Deletes item.

move(to_project)[source]

Moves item to another project.

close()[source]

Marks item as closed

complete(force_history=0)[source]

Marks item as completed.

uncomplete(update_item_orders=1, restore_state=None)[source]

Marks item as not completed.

update_date_complete(new_date_utc=None, date_string=None, is_forward=None)[source]

Completes a recurring task.

class todoist.models.Label(data, api)[source]

Bases: todoist.models.Model

Implements a label.

update(**kwargs)[source]

Updates label.

delete()[source]

Deletes label.

class todoist.models.LiveNotification(data, api)[source]

Bases: todoist.models.Model

Implements a live notification.

class todoist.models.GenericNote(data, api)[source]

Bases: todoist.models.Model

Implements a note.

local_manager = None

has to be defined in subclasses

update(**kwargs)[source]

Updates note.

delete()[source]

Deletes note.

class todoist.models.Note(data, api)[source]

Bases: todoist.models.GenericNote

Implement an item note.

class todoist.models.ProjectNote(data, api)[source]

Bases: todoist.models.GenericNote

Implement a project note.

class todoist.models.Project(data, api)[source]

Bases: todoist.models.Model

Implements a project.

update(**kwargs)[source]

Updates project.

delete()[source]

Deletes project.

archive()[source]

Marks project as archived.

unarchive()[source]

Marks project as not archived.

share(email, message='')[source]

Shares projects with a user.

take_ownership()[source]

Takes ownership of a shared project.

class todoist.models.Reminder(data, api)[source]

Bases: todoist.models.Model

Implements a reminder.

update(**kwargs)[source]

Updates reminder.

delete()[source]

Deletes reminder.