Our great sponsors
-
Anki-Android
AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
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 cards.
Afaik Anki itself does include Python libs for creating and manipulating db records—however dunno if they work without the full app running, and on top of that I personally keep trying to use Lua, since it runs circles around Python in terms of speed.
100%
The AnkiConnect project[1] is about the closest that we get to that right now, but requires running everything through a server inside Anki.
[1]: https://github.com/FooSoft/anki-connect
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 cards.
Afaik Anki itself does include Python libs for creating and manipulating db records—however dunno if they work without the full app running, and on top of that I personally keep trying to use Lua, since it runs circles around Python in terms of speed.
There is also apy[1] which needs an Anki installation but at least doesn't actually run the Anki process.
[1]https://github.com/lervag/apy
A few years ago I wrote a ruby gem to generate anki decks and spent some time reversing the schema from the android app and open source code. There were some very weird decisions iirc, something around pipe characters to mark individual card fields.
https://github.com/rkachowski/anki-rb
Related posts
- Batch integration of audio for a pre-exsisting deck
- The Ultimate Anki Deck for Ophthalmology Residents and Students - Blue Ophthalmology V7
- Students fails to import a shared deck
- When is Ankidroid releasing 2.17? I can’t try FSRS because they haven’t release to Playstore
- FSRS for AnkiDroid is out! (2.17alpha2)