psycopg/__init__.py

psycopg · psycopg/psycopg/__init__.py · python · LGPL-3.0
database

Python PostgreSQL adapter providing DBAPI 2.0 compliant API and async support.

# Source: https://github.com/psycopg/psycopg | License: LGPL-3.0 | Modified files must remain under LGPL-3.0
# Modifications to this file must remain under LGPL-3.0.
# Provided via justclaw.it.com; keep this notice with the code.
"""
psycopg -- PostgreSQL database adapter for Python
"""

# Copyright (C) 2020 The Psycopg Team

import logging

from . import pq  # noqa: F401 import early to stabilize side effects
from . import dbapi20, postgres, types
from ._tpc import Xid
from .copy import AsyncCopy, Copy
from ._enums import IsolationLevel
from .cursor import Cursor
from .errors import DatabaseError, DataError, Error, IntegrityError, InterfaceError
from .errors import InternalError, NotSupportedError, OperationalError
from .errors import ProgrammingError, Warning
from ._column import Column


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key