anki.cards#

Attributes#

Classes#

Module Contents#

anki.cards.CardId#
anki.cards.BackendCard#
anki.cards.FSRSMemoryState#
class anki.cards.Card(col: anki.collection.Collection, id: CardId | None = None, backend_card: BackendCard | None = None)#

Bases: anki._legacy.DeprecatedNamesMixin

lastIvl: int#
ord: int#
nid: anki.notes.NoteId#
id: CardId#
did: anki.decks.DeckId#
odid: anki.decks.DeckId#
queue: CardQueue#
type: CardType#
memory_state: FSRSMemoryState | None#
desired_retention: float | None#
decay: float | None#
last_review_time: int | None#
col#
timer_started: float | None = None#
load() → None#
flush() → None#
question(reload: bool = False, browser: bool = False) → str#
answer() → str#
question_av_tags() → list[anki.sound.AVTag]#
answer_av_tags() → list[anki.sound.AVTag]#
render_output(reload: bool = False, browser: bool = False) → anki.template.TemplateRenderOutput#
set_render_output(output: anki.template.TemplateRenderOutput) → None#
note(reload: bool = False) → anki.notes.Note#
note_type() → anki.models.NotetypeDict#
template() → anki.models.TemplateDict#
start_timer() → None#
current_deck_id() → anki.decks.DeckId#
time_limit() → int#

Time limit for answering in milliseconds.

should_show_timer() → bool#
replay_question_audio_on_answer_side() → bool#
autoplay() → bool#
time_taken(capped: bool = True) → int#

Time taken since card timer started, in integer MS. If capped is true, returned time is limited to deck preset setting.

description() → str#
user_flag() → int#
set_user_flag(flag: int) → None#
css() → str#
is_empty() → bool#