Skip to content

Instantly share code, notes, and snippets.

View stephenharper82's full-sized avatar

Stephen Harper stephenharper82

View GitHub Profile
@bbengfort
bbengfort / balance.py
Created December 7, 2017 02:11
Database transactions blog post.
#!/usr/bin/env python3
import os
import logging
import psycopg2 as pg
from decimal import Decimal
from functools import wraps
from psycopg2.pool import ThreadedConnectionPool