Anki Card Knowledge Syncer
The Problem
I like to ask lots of questions, but I can't always immediately find out the answers to those questions. So I store them in a google doc. When I do figure out the answers, I add them. Now, I would like to take that question/answer pair and create an Anki flashcard, so that I can store it in my long-term memory. However, copy-pasting these questions and answers into anki is a time-consuming process, and one which can be fully automated.
The solution
This project takes a formatted set of questions and answers stored as a cloud document, creates flashcards from those question/answer pairs, adds them to an Anki deck, and syncs that local deck with AnkiWeb.
Example usage with locally-downloaded HTML files
python -m card_parser input_file.html
Example usage with locally-downloaded text files
python -m card_parser input_file.txt
Example usage with files stored on google drive
Prerequisites
#. Sign up for a google cloud account
#. Create a new project and service account for that project
#. Share the document with the service account's e-mail
#. Download the service account's .json credentials and place in service_account.json file in card_parser directory
#. Setup config.ini to point to the appropriate google doc ID
Then, just run the following command:
python -m card_parser
Your document should have been uploaded in-place.
Disclaimer
NOTE: This package is currently under development, and has not yet been published to pip. The only current way to install it is through cloning this repository.
Metadata
Release files for ankilol 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ankilol-0.1.0.tar.gz | 20.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ankilol-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.2 kB
Release files / ankilol-0.1.0.tar.gz
| Download URL | ankilol-0.1.0.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2879625688c9d8e624512ba91d679252034bac0d4e47487ec8f551cea6512115
|
|
BLAKE2b-256 checksum How to use checksums |
71f05240af1fc01c6ff24625c19bfa77837f48c51142c2e935eb598f84e56630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.7 Darwin/22.4.0
|
Release files / ankilol-0.1.0-py3-none-any.whl
| Download URL | ankilol-0.1.0-py3-none-any.whl |
|---|---|
| Size | 23.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
387d791930008d596350118972a880805dfebb4d68cb59e7b67d91ee95319481
|
|
BLAKE2b-256 checksum How to use checksums |
fc70799a390dcd95c0d5ab8048828d3dabfd6c8e67e2f866d5a7c66a3ba7d4bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.7 Darwin/22.4.0
|