From 8242e074127814f411d7f46fad5f5107e1c9535b Mon Sep 17 00:00:00 2001 From: jgrogan Date: Mon, 5 Aug 2024 10:13:57 +0100 Subject: [PATCH] Start adding cv model --- README.md | 6 ++- src/dialann/__init__.py | 0 src/dialann/cv.py | 96 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 src/dialann/__init__.py create mode 100644 src/dialann/cv.py diff --git a/README.md b/README.md index fc82b03..4987ca0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ -# static-site-generator +# dialann + +This is a basic static site generator for my personal website. + + diff --git a/src/dialann/__init__.py b/src/dialann/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/src/dialann/cv.py b/src/dialann/cv.py new file mode 100644 index 0000000..ef766bd --- /dev/null +++ b/src/dialann/cv.py @@ -0,0 +1,96 @@ +import json + +class DataRange(): + + def __init__(self): + self.start = "" + self.end = "" + +class Address(): + + def __init__(self): + self.region = "" + self.country = "" + +class Organisation(): + + def __init__(self): + self.name = "" + self.address = Address() + +class CvPosition(): + + def __init__(self): + self.role = "" + self.organisation = Organisation() + self.date_range = DateRange() + +class AcademicEnrolement(CvPosition): + + def __init__(self): + super().__init__() + self.program = "" + self.grade = "" + +class Award(): + + def __init__(self): + self.year = "" + self.role = "" + self.title = "" + self.event = "" + +class CvSection(): + + def __init__(): + self.title = "" + +class CvRoles(CvSection): + + def __init__(self): + super().__init__() + self.roles = [] + +class Author(): + + def __init__(self): + self.first_name = "" + self.middle_initials = "" + self.surname = "" + self.orcid = "" + self.website = "" + +class Event(): + + def __init__(self): + self.title = "" + self.address = Address() + self.date = "" + +class BibliographicItem(): + + def __init__(self): + self.authors = [] + self.title = [] + +class TeachingRole(): + + def __init__(self): + self.title = "" + self.course = "" + self.institute = Organisation() + +class Cv(): + + def __init__(self): + self.sections: list[CvSection] = [] + + def serialize(self): + pass + + def deserialize(self): + pass + + +if __name__ == "__main__": + cv = Cv()