create utils module

This commit is contained in:
WorldTeacher
2024-01-31 15:20:40 +01:00
parent cf7f0df434
commit 69e7d7a0de
4 changed files with 21 additions and 0 deletions

9
src/utils/blob.py Normal file
View File

@@ -0,0 +1,9 @@
def create_blob(file):
"""
Creates a blob from a file.
"""
with open(file, "rb") as f:
blob = f.read()
return blob