view localtypes.py @ 85:f75b3a109b66

rewrite gcalendarwatch to read from calsync's mongo data only, not google services
author drewp@bigasterisk.com
date Sat, 07 Sep 2024 16:14:45 -0700
parents 7d9609edcf9c
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