From e65bef9c22244fc9bcd22a37d335f5f76ba16ff5 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Thu, 26 Sep 2024 10:02:15 +0200 Subject: Create separate packages for library and CLI --- src/card.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/card.py (limited to 'src/card.py') diff --git a/src/card.py b/src/card.py deleted file mode 100644 index c2243a6..0000000 --- a/src/card.py +++ /dev/null @@ -1,13 +0,0 @@ -""" -Defines a struct representing a single card. The struct takes the form: - -(front, back) -""" - -from collections import namedtuple -from hashlib import md5 - -Card = namedtuple('Card', ['front', 'back']) - -def getId(card: Card) -> str: - return md5((card.front + card.back).encode("utf-8")).hexdigest() -- cgit v1.2.3