Skip to main content

CIT Course Tools

cit-course-tools gives students one small command-line interface for preparing a course workspace, exploring deterministic model scenarios, testing cumulative Python harnesses, and producing consistent lab evidence. It is course-agnostic: the installed package provides the machinery, while the instructor-provided YAML file defines what a particular lab teaches and tests.

The goal is a simple student experience with rigorous behavior underneath. The package manages ports, simulator sessions, graph traversal, evidence, fractional scoring, and current-result reports. It does not download course scenario files, AI models, llama.cpp, or other external software.

Install

Python 3.10 or newer is required.

python -m pip install cit-course-tools

To update later in the semester:

python -m pip install --upgrade cit-course-tools

Start a course workspace

Navigate to the directory you want to use and initialize it once:

cit-course init .

The command creates the submitted orientation lab labs/lab00 and the regular labs/lab01 through labs/lab12. Every lab has logs/ for non-submitted debugging material and submission/ for the three files submitted together. It preserves student work and refreshes only the package-managed Lab 00 guide when needed.

Lab 00 contains interaction-guide.yaml. Download later labs' YAML files from the course site and place each one in its matching lab directory. The package does not generate or download course-specific lab suites.

The scaffold also creates a preserved project/project_harness.py starter. Labs that require a harness select it automatically. The file must export run_harness(context).

After initialization, start with:

cit-course specs

Review the resulting specs/hardware_specs.txt before sharing it.

Learn the simulator

Start the Model Simulator with labs/lab00/interaction-guide.yaml in one terminal. The bare command selects it automatically:

cit-course serve

Leave it running, then start the User Simulator in a second terminal:

cit-course run

The guide introduces the package and its simulator workflow without requiring a download. Explore its paths because the submitted Lab 00 evaluation asks questions answered by the guide.

When finished, run the Lab 00 suite and generate its submission files:

cit-course test

Explore a lab scenario

To explore an instructor-supplied lab instead, start its YAML file explicitly:

cit-course serve labs/lab01/lab01.yaml

Then run the User Simulator in a second terminal anywhere inside the same initialized workspace:

cit-course run

The package discovers the active lab automatically. The serve terminal shows model-service activity; the run terminal stays focused on predefined user prompts and Model Simulator responses. The Model Simulator uses port 8081 and the User Simulator uses port 8082 by default.

Run a lab test suite

Bare cit-course test selects Lab 00. For a later early lab that does not require a student harness:

cit-course test labs/lab01/lab01.yaml

For a cumulative lab, the default project harness is selected automatically:

cit-course test labs/lab03/lab03.yaml

The Python file must export one function:

def run_harness(context):
    """Run one complete test-owned interaction session."""

An alternate Python filename can be selected explicitly with --harness. The full suite runs by default. During implementation, rerun only failed, errored, and incomplete steps with:

cit-course test labs/lab03/lab03.yaml \
  --continue

For an alternate harness file:

cit-course test labs/lab03/lab03.yaml --harness project/my_harness.py

Each selectable prompt-response step is worth no more than one point. If three of five required checks pass, that step earns 0.60 / 1.00. Infrastructure errors are reported clearly and excluded from grading.

Every run replaces the current generated report and evidence without touching the evaluation or another lab:

labs/lab03/
├── logs/
└── submission/
    ├── evaluation.md
    ├── evidence.jsonl
    └── test-summary.md

evaluation.md is created during initialization and never overwritten. Students complete it in their own words. The evidence trace and test summary are regenerated by the package. When ready, the student compresses and submits that one submission/ directory.

Hardware report

Create or refresh the optional, privacy-conscious hardware report from anywhere inside the workspace:

cit-course specs

It is written to specs/hardware_specs.txt. Review it before sharing it.

Commands

cit-course init     Create or repair the course workspace
cit-course specs    Generate the optional hardware report
cit-course serve    Start the Model Simulator with the guide or a lab YAML file
cit-course run      Start the User Simulator for the active lab
cit-course test     Run Lab 00 or an explicit lab suite and replace its report

Run cit-course --help or cit-course COMMAND --help for options.

Instructor and developer references

  • SCENARIO_AUTHORING.md documents the YAML authoring and scoring contract.
  • TECHNICAL_SPECIFICATION.md documents components, isolation, evidence, and runtime behavior.
  • PUBLISHING.md contains the release checklist.

Run the complete regression suite with:

python -m unittest discover -s tests -v

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cit_course_tools-0.2.2.tar.gz (81.8 kB view details)

Uploaded Source

Built Distribution

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

cit_course_tools-0.2.2-py3-none-any.whl (69.0 kB view details)

Uploaded Python 3

File details

Details for the file cit_course_tools-0.2.2.tar.gz.

File metadata

  • Download URL: cit_course_tools-0.2.2.tar.gz
  • Upload date:
  • Size: 81.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for cit_course_tools-0.2.2.tar.gz
Algorithm Hash digest
SHA256 317822d04c91db0e97a9aa074bb5f39474f27b36fc9b8e8479b2c76fdf7868b0
MD5 8b1aa1f8236babc9e4c9d970ad163561
BLAKE2b-256 4d6e8f8262474373761d148491fa51aa7827d803245a352060ddede32c9762b2

See more details on using hashes here.

File details

Details for the file cit_course_tools-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cit_course_tools-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f4406198c970a53527289c7496fb9779cdebea76f74768d66718d620d9182d14
MD5 b5ed9bd6e1bf02177038b160d9328c41
BLAKE2b-256 5fd03159825a670a5300204d9f6db7caecde1e8d47347e2d0e2b8519ac26942c

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.3

2 files

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page