Skip to main content

Django-based synchronisation and API server for Anki

Project description

djankiserv

djankiserv is an open source Django-based implementation of a synchronisation server for Anki 2.1+. It includes a user manager (the native Django user system).

InstallationConnecting Anki to the sync server - Development - Contributing

About this implementation

This implementation was initially developed in order to support the spaced repetition functionality for Transcrobes, an open source language learning platform/ecosystem.

Any requests or functionality that don't interfere with using this project for that will definitely be entertained. Ideally the server would do everything that Ankiweb does, and much more. PRs are obviously always welcome!

Technical differences

Unlike the other popular open source Anki synchronisation server anki-sync-server, djankiserv stores the user data in a "proper" RDBMS. There are two 'database connections' that can be set - those for the 'system' (sessions, users, etc.) and those for user data. The 'system' stuff is just plain old Django, so any supported database can be used. The user data part currently uses either postgresql schemas or mysql databases, and currently only supports those two, though supporting other RDBMSes will definitely be considered later. sqlite3 is an embedded database and works great for that. It is not appropriate for use in modern web applications in the opinion of the maintainer, so will never be supported by djankiserv.

There is a basic API for getting certain, per-user collection-related information (decks, deck configuration, models, tags) and also notes for a given user. It may evolve to include other functions, statistics and even doing cards, though the focus is currently on getting and maintaining proper synchronisation as well as the basic API for notes.

Limitations

This is alpha software with some occasional data loss bugs. It works, sorta, if you hold it right. If it kills your kittens then you were forewarned!

Current known limitations (bugs!):

  • it doesn't support abort and if it crashes in the middle of a sync then the server will have a corrupt view of the database. You should force an upload sync on next synchronisation if this ever happens!
  • The v2 scheduler is not supported, and it is unclear how difficult this might be to implement.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djankiserv-0.0.9.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

djankiserv-0.0.9-py3-none-any.whl (55.2 kB view details)

Uploaded Python 3

File details

Details for the file djankiserv-0.0.9.tar.gz.

File metadata

  • Download URL: djankiserv-0.0.9.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.10.0-rc1-next-20201029-microsoft-cbl

File hashes

Hashes for djankiserv-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8c58abca00b108b93e4edaa238eb28ef2e7cffb2fff172378abb303204209267
MD5 5954753f7f35f8ec309e209c9eebf772
BLAKE2b-256 8f87140a4bae28cd12bb1170ac30db4e4b638b774979b20b3ca0f323f37f0e48

See more details on using hashes here.

File details

Details for the file djankiserv-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: djankiserv-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 55.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.8.5 Linux/5.10.0-rc1-next-20201029-microsoft-cbl

File hashes

Hashes for djankiserv-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3d7268f836bc5bd44e1d271472cee5acf8820b421b2bd3431ca06974014b2ed9
MD5 18f5320450afff05b4f473ead643070c
BLAKE2b-256 c2e50910797816d1fdc140919bce3aefa9e1cb69b67952f0c7d6e90972fae8b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page