Skip to content

krmanik/Anki-Export-Deck-tkinter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anki-Export-Deck-tkinter

Export Anki Deck from CSV, TSV or txt files.

Note: Use this to export Anki Decks in browser.

https://infinyte7.github.io/genanki-js/demo/index.html

In Browser

  1. Visit

    https://infinyte7.github.io/Anki-Export-Deck-tkinter/

    Note: It is not working on iOS.

  2. Import csv or tsv files

  3. Enter fields name

  4. Export the decks

  5. Download the decks

  6. If Export-deck.apkg file extension ends with .zip then rename and remove .zip.

Demo

For AnkiDroid

Download apk or run script in Pydroid 3

Download apk from release page

https://github.com/infinyte7/Anki-Export-Deck-tkinter/releases

  1. Install apk
  2. Give storage permission
  3. Import csv, tsv or txt file
  4. Enter title, model, and fields
  5. Export deck Decks are exported to Anki Deck Export folder

Run script in Pydroid 3

  1. Install Pydroid 3 from Play Store.
  2. Install genanki python library inside Pydroid using pip.
  3. Then download Anki Deck Export Tkinter
  4. Run this script
  5. Select file and fields separated by (tab, comma)
  6. Click Import
  7. Enter file name, title name, model name.
  8. Enter name of fields to be mapped

Demo

View this demo

For Anki Desktop

  1. Download this repo.
  2. Install genanki
pip install genanki
  1. Run main.py
  2. Select file and fields separated by (tab, comma)
  3. Click Import
  4. Enter file name, title name, model name.
  5. Enter name of fields to be mapped

This generate default CSS for exporting deck. The css can be modified inside AnkiDroid app or Anki Desktop.

View Anki Desktop Demo

Note

  1. Title of Deck - is deck name inside AnkiDroid or Anki Desktop deck browser 
    Name of Deck - is file name of generated anki deck 
    Model of Deck - is note type containing generated fields
    
  2. In following example TAB separated file have five fields.

    Simplified Traditional Pinyin Meaning Audio
    běn measure word for books [sound:cmn-本.mp3]
  3. Web version at https://infinyte7.github.io/Anki-Export-Deck-tkinter/ made using pyodide, genanki and HTML / CSS / JS.

    pyodide can be used to run python in browser.

Resources

pyodide
using pyodide from javascript
using javascript objects from python

License

genanki
MIT License

Anki-Deck-Export-tkinter
Mani (Infinyte7)
Mozilla Public License 2.0