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 (
claudein 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
- Pick a topic — e.g. "Python decorators", "sorting algorithms", "OOP"
- Configure — choose number of questions (3/5/7/10), difficulty, and time limit (15-60 min)
- Code — solve each question in the built-in editor with line numbers, tab support, and auto-indent
- 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
- 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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a34d674f925f34783eecda13cdc6967b2787e602c234a0d437018606905e1dd6
|
|
| MD5 |
715b1615a743bc3979b470ac54ad1993
|
|
| BLAKE2b-256 |
f969d54c61900ba8cebfb55367f1d8b6b4a121c62f56fd9f217423500ffa2d02
|
File details
Details for the file pyexam_mock-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyexam_mock-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
377de00d80bc7093e3f878868f4d7777d77e92ce251baf139942c19b684a765f
|
|
| MD5 |
bcd1bbaaed7a0a086c7beed1fd02024c
|
|
| BLAKE2b-256 |
739557166a4d55a283b18db0d00b100b13e69a3a08a7d2d16ac2687283fa2035
|