Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on PostgREST 9.0. Parent comment
class PG: _pg_conn = None @classmethod def pg(cls): if cls._pg_conn is None: cls._pg_conn = psycopg2.connect(...) return cls._pg_conn connection = PG.pg()
https://pypi.org/project/lazy-property/