Go to file
flan c0ea23c307 Monkey patch anki at runtime
The server should work fine with /usr/share/anki now, as long as
external Anki version >= 2.1.
2017-11-06 23:01:08 +01:00
anki-bundled@7b1747d650 Fix up some changes made by 2to3 2017-11-04 02:53:49 +01:00
ankisyncd Monkey patch anki at runtime 2017-11-06 23:01:08 +01:00
tests Use mapping protocol access instead of legacy configparser API 2017-11-06 21:06:18 +01:00
.gitignore Add gitignore 2017-10-28 23:18:18 +02:00
.gitmodules Apply @ndl's patches 2016-11-03 22:32:19 +07:00
ankisyncctl.py Fix up some changes made by 2to3 2017-11-04 02:53:49 +01:00
ankisyncd.conf Make built-in server actually use the "host" config field 2017-11-06 17:36:00 +01:00
COPYING Renamed LICENSE.txt to COPYING 2013-10-13 16:10:00 -05:00
README.md Monkey patch anki at runtime 2017-11-06 23:01:08 +01:00

ankisyncd

Anki is a powerful open source flashcard application, which helps you quickly and easily memorize facts over the long term utilizing a spaced repetition algorithm. Anki's main form is a desktop application (for Windows, Linux and macOS) which can sync to a web version (AnkiWeb) and mobile versions for Android and iOS.

This is a personal Anki server, which you can sync against instead of AnkiWeb. It was originally developed to support the flashcard functionality on Bibliobird, a web application for language learning.

This version has been modified from dsnopek's Anki Sync Server to remove the REST API, which makes it possible to drop some dependencies.

Installing

  1. Install the dependencies:

     $ pip install webob
    
  2. Modify ankisyncd.conf according to your needs

  3. Create user:

     $ ./ankisyncctl.py adduser <username>
    
  4. Run ankisyncd:

     $ python ./ankisyncd/sync_app.py ankisyncd.conf
    

Setting up Anki

To make Anki use ankisyncd as its sync server, create a file (name it something like ankisyncd.py) containing the code below and put it in ~/Anki/addons.

import anki.sync

anki.sync.SYNC_BASE = 'http://127.0.0.1:27701/'
anki.sync.SYNC_MEDIA_BASE = 'http://127.0.0.1:27701/msync/'

Replace 127.0.0.1 with the IP address or the domain name of your server if ankisyncd is not running on the same machine as Anki.