A simple python program to create and display flashcards. Flashcards can be very useful for memorizing of large amounts of information.
At this point in time, this application interfaces with a notion account to create flashcards based on a database table of terms and definitions. Alternatively, csv files can be created in the csv_flashcard_files folder.
In the future, I aim to create a CRUDL menu to give users the option to create them inside of this program.
-
Clone repository:
git clone https://github.com/Enprogames/Flashcard-Tool.git
-
Change to root directory of project:
cd Flashcard-Tool
-
Create new virtual environment using venv
- Linux:
python3 -m venv venv --prompt flashcard-tool
- Windows:
python -m venv venv --prompt flashcard-tool
- Linux:
-
Activate the virtual environment:
- Linux:
source venv/bin/activate
- Windows:
source venv/Scripts/activate
- Linux:
-
Now that you're in the virtual environment, install the requirements:
pip install -r requirements.txt
-
Run setup.sh: `./setup.sh'. This does the following:
- Creates a file in src called api_conf.json where a notion API key can be given
- Creates a folder in src called csv_flashcard_files. This is where flashcard data is stored.
Create files ending in ".csv" e.g. "french revolution.csv". These will be your flashcard sets. The files must follow this structure. Items are separated by commas. For more information about CSV files, refer to this guide.
Term | Definition | Exclude |
---|---|---|
When did the french revolution start? | May 5, 1789 | False |
Where did the french revolution occur? | France | True |
... | ... | ... |
Excluded items will not be shown in the flashcard program.
Coming soon...
- If
No module named tkinter
is given when attempting to run main.py:- Linux: Run command in terminal
sudo apt-get install python3-tk
- Windows: Install python through activestate: https://www.activestate.com/products/python/downloads/
- Linux: Run command in terminal
- Run Flashcard-Tool.pyw from root of project directory by double clicking.
Alternatively, run through terminal:
- Linux:
python3 src/Flashcard-Tool.pyw
- Windows:
python src/Flashcard-Tool.pyw
- Linux: