From cdfa8d7397e0fee4d8f085748f197a734ccf3bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=B0=D1=82=20=D0=A4=D0=B0=D0=B7=D1=8B?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2?= Date: Thu, 14 May 2026 08:43:45 +0000 Subject: [PATCH] add app.py --- app.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app.py diff --git a/app.py b/app.py new file mode 100644 index 0000000..9440d22 --- /dev/null +++ b/app.py @@ -0,0 +1,16 @@ +"""Entry point for the task. + +This script simply imports the parsing function from ``src/main.py`` and +provides a small CLI wrapper that can be used in the course tests. +""" + +from src.main import parse_task_description + +if __name__ == "__main__": + import sys + if len(sys.argv) < 2: + print("Usage: python app.py ''") + sys.exit(1) + description = sys.argv[1] + card = parse_task_description(description) + print(card.model_dump_json(indent=2, ensure_ascii=False))