Mercurial > code > home > repos > gcalendarwatch
diff localtypes.py @ 28:e2209226b001
rewrite with starlette and background_loop
author | drewp@bigasterisk.com |
---|---|
date | Sun, 24 Jul 2022 00:58:54 -0700 |
parents | |
children | 7d9609edcf9c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/localtypes.py Sun Jul 24 00:58:54 2022 -0700 @@ -0,0 +1,30 @@ +import datetime +from typing import TypedDict + + +class MongoConf(TypedDict): + host: str + port: int + database: str + collection: str + + +class Conf(TypedDict): + event_uri_ns: str + minutes_between_polls: float + mongo: MongoConf + + +class Record(TypedDict): + uri: str + feed: str + title: str + start: int + startTime: datetime.datetime + startDate: int + end: int + endTime: datetime.datetime + endDate: int + endTimeUnspecified: bool + htmlLink: str + creatorEmail: str