Skip to content

Instantly share code, notes, and snippets.

View hogru's full-sized avatar

Stephan Holzgruber hogru

View GitHub Profile
@hogru
hogru / select_submission.py
Last active November 10, 2023 10:46
Open a random submission file during JKU's Python I exercise (UE)
# coding=utf-8
"""Open a random submission file during JKU's Python I exercise (UE).
This script has the following features:
- selects only files from students who are listed in a students file (defaults to './students.csv').
- uses a file search pattern to find submission files in a given directory.
- randomly selects from the candidate files / submissions.
- asks for confirmation before opening the file, unless the --quiet flag is given.
Pre-requisites:
@hogru
hogru / pyproject.toml
Created September 28, 2022 14:01
poetry bug report: pyproject.toml
[tool.poetry]
name = "name"
version = "1.0a1"
description = "description"
authors = ["author"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.10"