Skip to content

Instantly share code, notes, and snippets.

@booya
booya / aiogoogle-gce.py
Created October 1, 2020 14:04
Example usage of aiogoogle using a service account on a GCE instance
import asyncio
from datetime import datetime
import json
from aiogoogle import Aiogoogle
from aiohttp import ClientSession
def current_timestamp():
return int(datetime.now().strftime('%s'))