view localtypes.py @ 88:a60b71615353

clean up index.html
author drewp@bigasterisk.com
date Sat, 07 Sep 2024 16:18:55 -0700
parents f75b3a109b66
children
line wrap: on
line source

import datetime
from typing import TypedDict


class MongoConf(TypedDict):
    host: str
    port: int
    database: str


class Conf(TypedDict):
    mongo: MongoConf


class Record(TypedDict):
    _id: str  # uri
    calendarUrl: str
    title: str
    start: int
    startTime: datetime.datetime
    startDate: int
    end: int
    endTime: datetime.datetime
    endDate: int
    endTimeUnspecified: bool
    htmlLink: str
    creatorEmail: str