anki.notes#
Attributes#
Classes#
Module Contents#
- anki.notes.DuplicateOrEmptyResult#
- anki.notes.NoteFieldsCheckResult#
- anki.notes.DefaultsForAdding#
- anki.notes.NoteId#
- class anki.notes.Note(col: anki.collection.Collection, model: anki.models.NotetypeDict | anki.models.NotetypeId | None = None, id: NoteId | None = None)#
Bases:
anki._legacy.DeprecatedNamesMixin- flags = 0#
- data = ''#
- id: NoteId#
- mid: anki.models.NotetypeId#
- col#
- load() None#
- flush() None#
For an undo entry, use col.update_note() instead.
- joined_fields() str#
- ephemeral_card(ord: int = 0, *, custom_note_type: anki.models.NotetypeDict | None = None, custom_template: anki.models.TemplateDict | None = None, fill_empty: bool = False) anki.cards.Card#
- cards() list[anki.cards.Card]#
- card_ids() collections.abc.Sequence[anki.cards.CardId]#
- note_type() anki.models.NotetypeDict | None#
- cloze_numbers_in_fields() collections.abc.Sequence[int]#
- keys() list[str]#
- values() list[str]#
- items() list[tuple[str, str]]#
- has_tag(tag: str) bool#
- remove_tag(tag: str) None#
- add_tag(tag: str) None#
Add tag. Duplicates will be stripped on save.
- string_tags() str#
- set_tags_from_str(tags: str) None#
- fields_check() NoteFieldsCheckResult#