Skip to content

Instantly share code, notes, and snippets.

andrew psiofxt

Block or report user

Report or block psiofxt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
You can’t perform that action at this time.