anki.cards#

Attributes#

Classes#

Card

Expose instance methods/vars as camelCase for legacy callers.

Module Contents#

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

Bases: anki._legacy.DeprecatedNamesMixin

Expose instance methods/vars as camelCase for legacy callers.

lastIvl: int#
ord: int#
nid: anki.consts.anki.notes.NoteId#
id: CardId#
did: anki.consts.anki.decks.DeckId#
odid: anki.consts.anki.decks.DeckId#
queue: anki.consts.CardQueue#
type: anki.consts.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.consts.anki.template.TemplateRenderOutput#
set_render_output(output: anki.consts.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.consts.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#