HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
kerrickstaley
genanki
Python2022–2023
kerrickstaley / genanki

genanki

A Python 3 library for generating Anki decks

8Distinct people
9Mentions
0Explicit recommenders
2.8KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A Python 3 library for generating Anki decks

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by month9 dated mentions

Observed mentions: 2022-02-23 13:06:48 UTC to 2023-03-20 22:28:03 UTC.

0122022-02-01 00:00:00 UTC to 2022-03-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsFeb 20222022-03-01 00:00:00 UTC to 2022-04-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-04-01 00:00:00 UTC to 2022-05-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-05-01 00:00:00 UTC to 2022-06-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2022-06-01 00:00:00 UTC to 2022-07-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-07-01 00:00:00 UTC to 2022-08-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-08-01 00:00:00 UTC to 2022-09-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsAug 20222022-09-01 00:00:00 UTC to 2022-10-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-10-01 00:00:00 UTC to 2022-11-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2022-11-01 00:00:00 UTC to 2022-12-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-12-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-01-01 00:00:00 UTC to 2023-02-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2023-02-01 00:00:00 UTC to 2023-03-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-03-01 00:00:00 UTC to 2023-04-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsMar 2023

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Feb 20222022-02-01 00:00:00 UTC2022-03-01 00:00:00 UTC202
Mar 20222022-03-01 00:00:00 UTC2022-04-01 00:00:00 UTC000
Apr 20222022-04-01 00:00:00 UTC2022-05-01 00:00:00 UTC000
May 20222022-05-01 00:00:00 UTC2022-06-01 00:00:00 UTC202
Jun 20222022-06-01 00:00:00 UTC2022-07-01 00:00:00 UTC000
Jul 20222022-07-01 00:00:00 UTC2022-08-01 00:00:00 UTC000
Aug 20222022-08-01 00:00:00 UTC2022-09-01 00:00:00 UTC202
Sep 20222022-09-01 00:00:00 UTC2022-10-01 00:00:00 UTC000
Oct 20222022-10-01 00:00:00 UTC2022-11-01 00:00:00 UTC110
Nov 20222022-11-01 00:00:00 UTC2022-12-01 00:00:00 UTC000
Dec 20222022-12-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
Jan 20232023-01-01 00:00:00 UTC2023-02-01 00:00:00 UTC101
Feb 20232023-02-01 00:00:00 UTC2023-03-01 00:00:00 UTC000
Mar 20232023-03-01 00:00:00 UTC2023-04-01 00:00:00 UTC101

What Hacker News says

9 sources

Show HN: Generate Anki cards from your notes

Hi! To help me prepare for a biology test, I made a Python app, using the excellent genanki package[1] to generate Anki cards directly from my Markdown notes. Cards are created from list items, using delimeters like `?::` to separate the question/answer (or front/back) from one another. Example: --- # The Solar System - Number of planets ?:: 8 ## Planets - Mars - Color ?:: red --- This will create two cards: (1) Path: The Solar System Front: Number of planets Back: 8 (2) Path: The Solar System > Planets > Mars Front: Color Back: Red Other tools to generate Anki cards from Markdown exist, but none worked well with nested lists. I also really wanted to have a "path", generated from headings/ancestral list items, to enable very succint cards, such as the `Color ?:: red`. I hope it might be of use to someone else. [1] https://github.com/ke
Read the rest
2 points · Open discussion
1. Find a good deck online on either AnkiWeb (https://ankiweb.net/shared/decks/), Reddit, or via a web search. For example, https://www.reddit.com/r/ChineseLanguage/comments/7mjmjc/bes... is excellent for learning Simplified Chinese and Mandarin. 2. Set aside a dedicated block of time to drill every day, about 30 minutes to an hour is sufficient. Try to build it into your day, for example I drill Anki flashcards while commuting to work on the bus. 3. Just keep persisting at it and turn it into a habit. Create a trigger to remind yourself to perform the habit every day (eg: maybe a reminder post-it or poster on your wall), and reward yourself (maybe with a snack like some chocolates or juice) when you complete the 30 minutes of drilling to make you look forward to the next session. 4. Recognize that forgetting is natural, but there are way
Read the rest
s to minimize the losses. I like the idea of paraphrasing key concepts into Evergreen Notes (https://notes.andymatuschak.org/Evergreen_notes) based on what I've read, and occasionally reviewing those. 5. Eventually create your own Anki decks, using tools mentioned in https://news.ycombinator.com/item?id=32397162 like https://github.com/kerrickstaley/genanki or https://github.com/ankicommunity/ankidown/
In Ask HN: How to use Anki effectively for spaced repetition learning?
This looks great! I too have long been frustrated by the laborious process of making high-quality notes. I've approached the problem a bit differently, choosing to integrate with APIs and auto-generate notes from that structured information. I've found that when done carefully, this approach can solve especially well for the 'disconnected knowledge' problem. I see your project uses import-from-csv to get cards into Anki -- you can make this significantly more user-friendly by utilizing the genanki Python package [0]. It spits out an apkg for you that you can just double-click on and import. The other side benefit is that you can keep a stable ID of the same cards over time, which means that if you want to eg update the structure or styling of already-exported notes, it is very easy to do so. [0] https://github.com/kerrickstaley/genanki
In Show HN: I made Ankify that converts notes to Anki cards
Not needing Anki itself is pretty much a requirement for me, because that's the way which makes sense in my worldview. Tools work independently and feed into each other—not get slapped onto each other, which kinda smells like a whiff of bad OOP. I began a feeble attempt at a lib for my own purposes, but I had to take Anki db structs a little at a time just to keep my frustration in check. There are in fact some libs for writing Anki data: https://github.com/kerrickstaley/genanki and maybe https://github.com/patarapolw/AnkiTools — but genanki, while looking quite good for one-time generation, doesn't seem to be able to update notes. Afaik Anki itself does include Python libs for creating and manipulating db records, which can be used in third-party scripts—however dunno if they work without the full app running, and on top of that I person
Read the rest
ally keep trying to use Lua, since it runs circles around Python in terms of speed.
In On Anki's Database

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.