Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krmanik/anki-export-deck-tkinter

Export Anki Deck from csv, tsv or txt files
https://github.com/krmanik/anki-export-deck-tkinter

anki anki-deck ankidroid export-anki-deck genanki python tkinter

Last synced: about 2 months ago
JSON representation

Export Anki Deck from csv, tsv or txt files

Awesome Lists containing this project

README

        

# 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](https://play.google.com/store/apps/details?id=ru.iiec.pydroid3) 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](https://github.com/infinyte7/Anki-Export-Deck-tkinter/blob/master/export_deck_demo.gif)**

## For Anki Desktop
1. Download this repo.
2. Install ```genanki```
```
pip install genanki
```
3. Run main.py
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

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

**View [Anki Desktop Demo](Images/demo_export_AnkiDesktop.gif)**

## 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](https://github.com/iodide-project/pyodide), [genanki](https://github.com/kerrickstaley/genanki) and HTML / CSS / JS.

[pyodide](https://github.com/iodide-project/pyodide) can be used to run python in browser.

# Resources
[pyodide](https://github.com/iodide-project/pyodide)

[using pyodide from javascript](https://github.com/iodide-project/pyodide/blob/master/docs/using_pyodide_from_javascript.md)

[using javascript objects from python](https://pyodide.readthedocs.io/en/latest/type_conversions.html#using-javascript-objects-from-python)

# License
[genanki](https://github.com/kerrickstaley/genanki)

MIT License

[Anki-Deck-Export-tkinter](https://github.com/infinyte7/Anki-Export-Deck-tkinter)

Mani (Infinyte7)

Mozilla Public License 2.0