A terminal-based exam, text, or survey tool for educators and learners
Project description
exam-terminal
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.
Very Basically ...
- Use
exam-terminal
to take or give exams in a terminal
:eyeglasses: Overview
- :eyeglasses: Overview
- :fast_forward: Quick Start
- :thumbsup: Compatibility
- :rocket: Installation
- :boom: Usage
- :pencil: Exam Creation
- :bust_in_silhouette: Contributors
- :computer: Development Notes
- Licence
:fast_forward: Quick Start
# 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)
:thumbsup: Compatibility
As of now the following Python 3 versions are tested and supported:
- Python 3.7, 3.8, 3.9, 3.10
For the following platforms:
- OSX, Windows, Linux (Debian based)
To check which python version you have, open a terminal and type python --version
:rocket: Installation
Install It From PYPI (pre-build)
- Ensure internet connection
- Open up a terminal (or PowerShell) on your computer
- Ensure python is installed and has compatible version
python --version
- If it is not, install it. Human Readable Guide
- Ensure that
pip
,setuptools
, andwheel
are installed an up to datepython -m pip install --upgrade pip setuptools wheel
- Install that
exam-terminal
from PYPIpip install exam-terminal
Manually Build and Install it Yourself
These following steps are useful if you do not have access to the internet on a particular machine.
- Download/Clone this entire
exam-terminal
GitHub repository - Copy it to some temporary location on the computer you wish to install
exam-terminal
on (ie. Downloads) - Open up a terminal (or PowerShell) on your computer
- Use the
cd
command to change directory into theexam-terminal
directory- Example:
cd /home/username/Downloads/exam-terminal
- Example:
- Ensure python is installed and has compatible version
python --version
- If it is not, install it. Human Readable Guide
- Ensure that
pip
,setuptools
, andwheel
are installed an up to datepython -m pip install --upgrade pip setuptools wheel
- Install that
exam-terminal
python setup.py install
:boom: Usage
To 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:\Users\YOU\My Stuff\algebra_exam.yml"
# Remotely requested exam file
exam-terminal -examfile https://raw.githubusercontent.com/ismet55555/exam-terminal/master/exam_terminal/exams/sample_exam.yml
NOTE: For help enter exam-terminal --help
:pencil: Exam Creation
Exams are described within examfiles. A full example of an exam file can be seen here: exam file
Examfile Format
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.
Exam File Structure
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:
- ...
- ...
- ...
Exam File Section: exam
This 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 |
Example
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: 95
Exam File Section: questions
This 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 |
Answer Selection
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.
Example
---
questions:
- question: What is your hobby?
selection:
- Politics
- Programming: true
- TV
- Chillin: true
- Reading: true
NOTE: 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.
:bust_in_silhouette: Contributors
Ismet Handžić - GitHub: @ismet55555
:computer: Development Notes
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.
Licence
This project is licensed under the Apache 2.0 License - Please see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file exam_terminal-0.2.12.tar.gz
.
File metadata
- Download URL: exam_terminal-0.2.12.tar.gz
- Upload date:
- Size: 30.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76fe9e101a457f49bf20d7a4f1356e810b3f21698f3be688bb8d50ca8131db4e |
|
MD5 | 0ded499ea312a43943f27db1d038d04c |
|
BLAKE2b-256 | 482ad2607da84bd04f2ad634af4b08a0d8311bb06678f6c846bb95aeecf3aaf0 |
File details
Details for the file exam_terminal-0.2.12-py3-none-any.whl
.
File metadata
- Download URL: exam_terminal-0.2.12-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd163069a024dc994d3eae0a6845b77014153607de0c28108a98b303fac7ba05 |
|
MD5 | 24659f325f7affad0dce87ccf9d6c04e |
|
BLAKE2b-256 | 076a3141bf9a3ecc9cdc552e57304667b60ebdd7d164cdde5aec9ae490c93b83 |