import json
from pathlib import Path
import datetime, zoneinfo

SYD = zoneinfo.ZoneInfo('Australia/Sydney')
data = json.loads(Path('/tmp/g_cal.json').read_text())
events = data.get('items', [])
print(f'EVENTS={len(events)}')
for e in events:
    s = e.get('summary', '(no title)')
    start = e.get('start', {})
    end = e.get('end', {})
    s_dt = start.get('dateTime', start.get('date', ''))
    e_dt = end.get('dateTime', end.get('date', ''))
    loc = e.get('location', '')
    desc = e.get('description', '')[:120]
    print(f'  - {s}')
    print(f'    start={s_dt}  end={e_dt}')
    if loc: print(f'    location={loc}')
    if desc: print(f'    desc={desc}')
