Metadata-Version: 2.1
Name: ankilol
Version: 0.1.0
Summary: A system for parsing and creating Anki flashcards from your existing documents
License: MIT
Author: edmundsj
Author-email: jordan.e@berkeley.edu
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: bs4 (>=0.0.1,<0.0.2)
Requires-Dist: google-api-python-client (>=2.90.0,<3.0.0)
Requires-Dist: google-auth (>=2.20.0,<3.0.0)
Requires-Dist: google-auth-httplib2 (>=0.1.0,<0.2.0)
Requires-Dist: gspread (>=5.9.0,<6.0.0)
Requires-Dist: oauth2client (>=4.1.3,<5.0.0)
Requires-Dist: pytest (>=7.4.0,<8.0.0)
Description-Content-Type: text/markdown

# 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.

