This is a cli quiz app that allows users to take a quiz and assess their knowledge on a particular topic. It reads questions from csv files and presents them to the user. The user can then select an answer. At the end of the quiz, the user is presented with their score.
- Python 3.10 or higher
- Clone the repo:
git clone https://github.com/Kamran151199/quizify.git - Navigate to the project directory:
cd quizify
- Run
poetry installto install dependencies - Run
poetry run quizifyto start the app
- Install from PyPi:
pip install quizify
- Run
quizifyto start the app - Run
quizify --helpto see available options
- The questions csv file should have the following columns:
question: The question to be askedanswer: The correct answer to the questionoptions: The options separated by;(semi-colon)level: Any meta data that you want to show to the user after the question has been answered
- The score penalty csv file should have the following columns:
level: The level of the questionpenalty: The penalty to be applied to the score if the question is answered incorrectly
quizify --helpto see available optionsquizify --score-penalty=score_penalty_config.csv --questions=questions.csvto start the app with custom config and questions.quizify --score-penalty=score_penalty_config.csv --questions=questions.csv --shuffleto start the app with custom config and questions and shuffle the questions.quizify --score-penalty=score_penalty_config.csv --questions=questions.csv --shuffle --with-metato start the app with custom config and questions and shuffle the questions and show meta data.