The exam-terminal is a terminal-based assessment tool. It can be used for making, taking, or delivering exams or quizzes.
Exam description can be loaded form a local file or a remote URL link.
The exam results include your general exam score, some basic statistics, and the ability to export your results to a PDF document.
exam-terminal to take or give exams in a terminalexam
questions
# 1. Install it with pip package manager
pip install exam-terminal
# 2. Checkout the help
exam-terminal --help
# 3. Try out a sample exam
exam-terminal --sample
# 4. Try a remote sample exam
exam-terminal --examfile https://raw.githubusercontent.com/ismet55555/exam-terminal/master/exam_terminal/exams/sample_exam.yml
# Make and load your own exams using YAML format (See below)As of now the following Python 3 versions are tested and supported:
For the following platforms:
To check which python version you have, open a terminal and type python --version
python --versionpip, setuptools, and wheel are installed an up to date
python -m pip install --upgrade pip setuptools wheelexam-terminal from PYPI
pip install exam-terminalThese following steps are useful if you do not have access to the internet on a particular machine.
exam-terminal GitHub repositoryexam-terminal on (ie. Downloads)cd command to change directory into the exam-terminal directory
cd /home/username/Downloads/exam-terminalpython --versionpip, setuptools, and wheel are installed an up to date
python -m pip install --upgrade pip setuptools wheelexam-terminal
python setup.py installTo load a local exam file located on your computer, or load a remote exam file located somewhere on the internet, use the --examfile or -e option flag.
If the file location contains a space, please use single or double quotes
Examples:
# Locally stored exam file
exam-terminal --examfile home/USERNAME/Downloads/examfile.yml
exam-terminal --examfile "C:UsersYOUMy Stuffalgebra_exam.yml"
# Remotely requested exam file
exam-terminal -examfile https://raw.githubusercontent.com/ismet55555/exam-terminal/master/exam_terminal/exams/sample_exam.ymlNOTE: For help enter exam-terminal --help
Exams are described within examfiles. A full example of an exam file can be seen here: exam file
Exam description files are made using the YAML file format (.yml or .yaml), human-readable structured data format. If you are not familiar with YAML, there are lots of sources explaining it, here is one. An example of a examfile description in YAML format can be viewed here.
The exam file should be named with the .yml or .yaml file extension.
Examfiles have two major sections:
exam - General information about the entire exam. This includes info like exam title or allowed exam timequestions - Information/Description for each question. This section includes each question and available selections for that question.An outline of the examfile looks like this:
exam: ...
questions:
- question: ...
selection:
- ...
- ...
- question: ...
selection:
- ...
- ...
- ...examThis section describes the general information about the exam. The following are the available exam descriptions.
NOTE: As of now all of the exam descriptions are required
| Item | Description | Example |
|---|---|---|
exam_title |
The general title of the exam | AWS Kiwi Practice Exam |
exam_description |
A longer more detailed description of the exam | This exam assess your knowledge on kiwis |
exam_author |
The name of the person or entity that made the exam | Pappa McJameson |
exam_edit_date |
The date when the exam was last edited | 01/01/1970 |
exam_allwed_time |
Total exam time allowed | 120 |
exam_allowed_time_units |
The time units that describe exam_allowed_time |
seconds |
exam_passing_score |
Minimum passing score percentage for the exam | 70 |
exam:
exam_title: "The One Exam"
exam_description: This exam will assess your ability to be the one. You chose that one pill now you gotta do work and prove you can fly around the matrix and stuff.
exam_author: "Neo"
exam_edit_date: "06/06/2199"
exam_allowed_time: 240
exam_allowed_time_units: "seconds"
exam_passing_score: 95questionsThis section describes each question in the exam. The following are the available options for each question:
| Item | Description | Example |
|---|---|---|
question |
Question text shown to the exam taker | What's your favorite color? |
question_allowed_time |
(Optional) Total time allowed for the specific question in seconds | 60 |
selection |
List of answer selections for the user. Correct answers denoted by : true |
- green- black: true |
To denoted the correct answer in the selection section, simply add at : true to the end of the selection. You can have more than one correct answer, that is, multiple : true denoted questions.
---
questions:
- question: What is your hobby?
selection:
- Politics
- Programming: true
- TV
- Chillin: true
- Reading: trueNOTE: If there is more than one correct (true) answer, the question automatically becomes a multi-answer question, allowing the exam taker to select multiple selections.
Ismet Handžić - GitHub: @ismet55555
If you are eying this repo and thinking "Hey this is kind of neat, I'd love to add a few things", well this is your chance :-)
There is definetly work to be done. If you don't have a genius great idea for the next big change, there is a TODO.md file which outlines some changes, features, and fixes that would be nice to have.
For some guides on how to help out, checkout the dev_stuff directory.
This project is licensed under the Apache 2.0 License - Please see the LICENSE file for details.