Skip to main content

Timed Python mock tests with line-by-line AI feedback

Project description

PyExam — Python Mock Test

Timed Python coding challenges with line-by-line AI feedback. Pick a topic, answer coding questions under a timer, and get detailed feedback on every line of your code.

Powered by Claude Code as a backend. No databases, no accounts — just a Python server and a browser.

Setup

Prerequisites

  • Python 3.9+
  • Claude Code CLI installed and authenticated (claude in your PATH)

Install from PyPI

uv tool install pyexam-mock

To upgrade to the latest version:

uv tool upgrade pyexam-mock

Or install from source:

uv tool install git+https://github.com/itzsid/mock_test.git

Run

cd ~/exams        # or wherever you want to keep your test history
pyexam            # starts server, opens browser

The pyexam command copies the app files to the current directory, starts a local server, and opens your browser automatically.

Run from source (no install)

git clone https://github.com/itzsid/mock_test.git
cd mock_test
python3 server.py

Then open http://localhost:3000.

How It Works

  1. Pick a topic — e.g. "Python decorators", "sorting algorithms", "OOP"
  2. Configure — choose number of questions (3/5/7/10), difficulty, and time limit (15-60 min)
  3. Code — solve each question in the built-in editor with line numbers, tab support, and auto-indent
  4. Get feedback — after submitting, Claude reviews every line of your code with colored indicators (correct/warning/error/suggestion) and runs your code against test cases
  5. Review — see your score, per-question verdicts, test results, and improvement suggestions

Test history is saved locally in a tests/ folder in the working directory.

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

pyexam_mock-0.1.1.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

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

pyexam_mock-0.1.1-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyexam_mock-0.1.1.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for pyexam_mock-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a34d674f925f34783eecda13cdc6967b2787e602c234a0d437018606905e1dd6
MD5 715b1615a743bc3979b470ac54ad1993
BLAKE2b-256 f969d54c61900ba8cebfb55367f1d8b6b4a121c62f56fd9f217423500ffa2d02

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyexam_mock-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 377de00d80bc7093e3f878868f4d7777d77e92ce251baf139942c19b684a765f
MD5 bcd1bbaaed7a0a086c7beed1fd02024c
BLAKE2b-256 739557166a4d55a283b18db0d00b100b13e69a3a08a7d2d16ac2687283fa2035

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