Skip to main content

pTyX-MCQ is a generator/scanner of MCQ, based on pTyX.

Project description

pTyX MCQ Extension

MCQ generation (PDF files) and automatic marking of scanned students answers.

Overview

pTyX is a LaTeX precompiler, written in Python. pTyX enables to generate LaTeX documents, using custom commands or plain python code. One single pTyX file may generate many latex documents, with different values. I developed and used pTyX to make several versions of a same test in exams, for my student, to discourage cheating. Since it uses sympy library, pTyX has symbolic calculus abilities too.

The pTyX MCQ extension makes it easy to use pTyX to generate Multiple Choice Questions in the form of pdf documents. The students MCQ can then be scanned and automatically corrected and marked.

Installation

Obviously, pTyX needs a working Python installation. Python version 3.8 (at least) is required for pTyX MCQ to run.

Currently, pTyX is only supported on GNU/Linux.

The easiest way to install it is to use pip.

$ pip install --user ptyx_mcq

Usage

To generate a template, run:

$ mcq new new_folder

This will generate a new_folder folder with a new.ptyx file inside, which is the main configuration file.

This will also create a new_folder/questions/ folder, where you should put all the exercises, as .txt files.

A few text files are already included as examples.

See the next section (MCQ file format) for more information about those files format.

To compile the template, run:

$ mcq make

For more options:

$ mcq make --help

To automatically corrected the scanned students MCQs, but them as a pdf inside new_folder/scan.

Then run:

$ mcq scan

MCQ file format

When running mcq new, a template folder will be generated, including a new.ptyx file.

(More to come...)

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

ptyx_mcq-31.0.1.tar.gz (129.1 kB view details)

Uploaded Source

Built Distribution

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

ptyx_mcq-31.0.1-py3-none-any.whl (160.3 kB view details)

Uploaded Python 3

File details

Details for the file ptyx_mcq-31.0.1.tar.gz.

File metadata

  • Download URL: ptyx_mcq-31.0.1.tar.gz
  • Upload date:
  • Size: 129.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ptyx_mcq-31.0.1.tar.gz
Algorithm Hash digest
SHA256 62aa3e62fd3168c63897254e4c655a4cf6ab6f863ed631062d2daa75132aad91
MD5 d675d2b2d35f4457101d20544d12f5da
BLAKE2b-256 f63d84d7081b60736be155ea41f27f9085bc521ddc6780c92710b0c82d7fd2f6

See more details on using hashes here.

File details

Details for the file ptyx_mcq-31.0.1-py3-none-any.whl.

File metadata

  • Download URL: ptyx_mcq-31.0.1-py3-none-any.whl
  • Upload date:
  • Size: 160.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"12","id":"bookworm","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ptyx_mcq-31.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 896378ff605cc3c3dc01682d1a101af0150cde0ee942c0b3b507e73877ebb372
MD5 49fce6464bbd7959ce32d4b1b1a0ac29
BLAKE2b-256 d9f84abf26762fea46ad07a3633101b0172a9df7235f52bcc83053a4ea4e35b6

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