Skip to main content

A system for parsing and creating Anki flashcards from your existing documents

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ankilol-0.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ankilol-0.1.0-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file ankilol-0.1.0.tar.gz.

File metadata

  • Download URL: ankilol-0.1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.7 Darwin/22.4.0

File hashes

Hashes for ankilol-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2879625688c9d8e624512ba91d679252034bac0d4e47487ec8f551cea6512115
MD5 9b5e8527da24ed657e43557f4387c37e
BLAKE2b-256 71f05240af1fc01c6ff24625c19bfa77837f48c51142c2e935eb598f84e56630

See more details on using hashes here.

File details

Details for the file ankilol-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ankilol-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.7 Darwin/22.4.0

File hashes

Hashes for ankilol-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 387d791930008d596350118972a880805dfebb4d68cb59e7b67d91ee95319481
MD5 f4508a7712cf8a45014b59d8d69f70e3
BLAKE2b-256 fc70799a390dcd95c0d5ab8048828d3dabfd6c8e67e2f866d5a7c66a3ba7d4bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page