Skip to main content

Quizify is a Python package for creating quizzes from the csv file.

Project description

Quizify - A Quiz App

Description

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.

Requirements

  • Python 3.10 or higher

Installation

Option 1

  • Clone the repo: git clone https://github.com/Kamran151199/quizify.git
  • Navigate to the project directory:
    • cd quizify
  • Run poetry install to install dependencies
  • Run poetry run quizify to start the app

Option 2

  • Install from PyPi:
    • pip install quizify
  • Run quizify to start the app
  • Run quizify --help to see available options

Schema of CSV files

Questions

  • The questions csv file should have the following columns:
    • question: The question to be asked
    • answer: The correct answer to the question
    • options: The options separated by ; (semi-colon)
    • level: Any meta data that you want to show to the user after the question has been answered

Score Penalty

  • The score penalty csv file should have the following columns:
    • level: The level of the question
    • penalty: The penalty to be applied to the score if the question is answered incorrectly

Example CSV files

Example Usage

  • quizify --help to see available options
  • quizify --score-penalty=score_penalty_config.csv --questions=questions.csv to start the app with custom config and questions.
  • quizify --score-penalty=score_penalty_config.csv --questions=questions.csv --shuffle to start the app with custom config and questions and shuffle the questions.
  • quizify --score-penalty=score_penalty_config.csv --questions=questions.csv --shuffle --with-meta to start the app with custom config and questions and shuffle the questions and show meta data.

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

quizify-0.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

quizify-0.1.1-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file quizify-0.1.1.tar.gz.

File metadata

  • Download URL: quizify-0.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.9 Darwin/23.1.0

File hashes

Hashes for quizify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7400e87bbb8a20c6b469c67f205dbb0402be8f0ee00ffd19ec585744df3ee65c
MD5 0b7ab9ea29977ea96658cd4cd6fbc8ef
BLAKE2b-256 75faef9992d3488383d579da8c9712ea736aca1846e8dccb5955c63ec779fe9c

See more details on using hashes here.

File details

Details for the file quizify-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: quizify-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.9 Darwin/23.1.0

File hashes

Hashes for quizify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c234d787a2930cd15b4d939406a03a06a7fdbb837bc126624e48ddd765b9819
MD5 e629e015e18aad523fca94585821ec59
BLAKE2b-256 c47f06cdc068e5e094925672a2b546387a265e57600fa54168dfec155218a92b

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