Skip to content

Instantly share code, notes, and snippets.

View price_getter.py
import asyncio
import aiohttp
import aiofiles
import json
from datetime import datetime, timedelta
async def fetch(url):
async with aiohttp.ClientSession() as session:
async with session.get(url) as response:
View asyncpg_vs_psycopg2_pools.py
import os
import asyncio
import uvloop
from asyncpg import connect, create_pool
from sanic import Sanic
from sanic.response import json, text
import psycopg2.pool
View keys.pub
BEGIN MESSAGE.
FponFGBxrAnAYBW NQpBgOmtG9v9O4Z h03uOdfAsHW6iJo MFEDx3btseHlv8r
QPaDhGx8GCIqX2S MuPQaw5SX1OTCKq 6Xr2MZHgg4ZsOqw h5BMhI8WYO9M9IQ
D6o6dv4f6PxKMwY FfO7VNLeLsgABNB ratBUHoIvzzU4Kd JvbjUKUQB03UtoP
V9Q8FxTLKvOjZjv pzhVCqhGM1usKnK BL1N42IP.
END MESSAGE.