Coder Social home page Coder Social logo

ankideckgenerator's Introduction

Anki Deck Generator

This tool allows one to generate an Anki deck by providing a file where:

  1. Each line correspond to a question with its answer
  2. Each question and answer are separated by a common separator

Medias are not taken into account yet.

Prerequisites

genanki, argparse, hashlib 

Usage

usage: ankiDeckGenerator.py [-h] --file FILE --separator SEPARATOR
                            [--name NAME] [--verbose] [--output OUTPUT]

Generate an Anki deck from a file in which questions and answers are separated
by a custom separator

optional arguments:
  -h, --help            show this help message and exit
  --file FILE, -f FILE  Name of the input file
  --separator SEPARATOR, -s SEPARATOR
                        Question/Answer separator
  --name NAME, -n NAME  Name of the generated deck
  --verbose, -v         Print more information
  --output OUTPUT, -o OUTPUT
                        Name of the ouput file

Example of usage

./ankiDeckGenerator.py -f <INPUT_FILE> -s , -n <DECK_NAME> -o <OUTPUT_FILE>
./ankiDeckGenerator.py -f <INPUT_FILE> -s , -n <DECK_NAME>
./ankiDeckGenerator.py -f <INPUT_FILE> -s : -n <DECK_NAME> -o <OUTPUT_FILE> -v
./ankiDeckGenerator.py -f <INPUT_FILE> -s %

Once the output file is generated, one just has to import it in the Anki app.

โš ๏ธ genanki uses id numbers for identifying decks. In Anki Deck Generator they are computed with the name of the Deck provided. If the name is the same, the id will be the same. Therefore, importing a deck with a similar name as one created with this tool will result in updating the first deck. It is convenient if one wants to keeps its deck statistics and add/remove some cards in a deck.

License

This project is licensed under the MIT License - see the LICENSE file for details.

ankideckgenerator's People

Contributors

jordansamhi avatar

Watchers

 avatar  avatar

Forkers

kaharjan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.