From b3ac05a4636ce2a6ecaace74514875874f692b20 Mon Sep 17 00:00:00 2001 From: Benjamin Dweck Date: Thu, 7 Sep 2023 14:26:28 +0300 Subject: [PATCH] added README.md --- README.md | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a92d83 --- /dev/null +++ b/README.md @@ -0,0 +1,59 @@ +# csv2ankicards + +A simple tool to convert CSV files into Anki deck packages (.apkg files). + +## Features + +- Converts a CSV file with questions and answers into an Anki deck package. +- There are only two columns in the CSV file, separated by the first comma encountered. +- CSV files should have a "Front" column for questions and a "Back" column for answers. + +## Installation + +1. Clone this repository: + ```bash + git clone https://git.rudefox.io/bj/anki-csv2ankicards.git + cd csv2ankicards + ``` + +2. Set up a virtual environment and activate it: + ```bash + python3 -m venv venv + source venv/bin/activate + ``` + +3. Install the required packages: + ```bash + pip install -r requirements.txt + ``` + +## Usage + +To convert a CSV file into an Anki deck package: + +```bash +python csv2ankicards.py /path/to/your/csvfile.csv output.apkg +``` + +This will produce an `output.apkg` file which can then be imported into Anki. + +### CSV Format + +The CSV file should follow this format: + +``` +Front,Back +Your question here,Your answer here, and here +Another question,list of: answer1, answer2, answer3 +... +``` + +**Note:** If your answers contain commas, they will be considered as part of the answer. Only the first comma is used to separate the question from the answer. + +## License + +[MIT License](LICENSE) + +## Contributing + +Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.