initial commit

This commit is contained in:
juul
2025-05-30 11:43:29 +02:00
commit caf2f6efca
6 changed files with 105 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import json
from dataclasses import dataclass
@dataclass
class IAItem:
title: str
description: str
subject: str
creator: str
date: str
collection: str
mediatype: str
@classmethod
def from_json(cls, json_data):
return cls(**json_data)
def __call__(self, *args, **kwargs):
return self.__dict__