-/*.egg-info/
+*.egg-info/
.tox
/.eggs/
/build
# -- Project information -----------------------------------------------------
project = "psycopg3"
-copyright = "2020, Daniele Varrazzo and The Psycopg Team"
+copyright = "2020-2021, Daniele Varrazzo and The Psycopg Team"
author = "Daniele Varrazzo"
release = "UNRELEASED"
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import logging
import urllib.request
Customisation for docs generation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import os
import re
An interpreted text role to style SQL syntax in Psycopg documentation.
:copyright: Copyright 2010-2020 by Daniele Varrazzo.
+ :copyright: Copyright 2020-2021 The Psycopg Team.
"""
from docutils import nodes, utils
-/psycopg3.egg-info/
/build
/dist
.. __: https://github.com/psycopg/psycopg3#readme
-Copyright (C) 2020 The Psycopg Team
+Copyright (C) 2020-2021 The Psycopg Team
psycopg3 -- PostgreSQL database adapter for Python
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from . import pq
from . import types
The Column object in Cursor.description
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any, NamedTuple, Optional, Sequence, TYPE_CHECKING
from operator import attrgetter
Support for prepared statements
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from enum import IntEnum, auto
from typing import Optional, Sequence, Tuple, TYPE_CHECKING, Union
Utility module to manipulate queries
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
from typing import Any, Dict, List, Mapping, Match, NamedTuple, Optional
Helper object to transform values between Python and PostgreSQL
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any, Dict, List, Optional, Sequence, Set, Tuple, Union
from typing import cast, DefaultDict, TYPE_CHECKING
Entry point into the adaptation system.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from abc import ABC, abstractmethod
from typing import Any, Dict, List, Optional, Type, TypeVar, Union
psycopg3 connection objects
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import sys
import asyncio
Functions to manipulate conninfo strings
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
from typing import Any, Dict, List
psycopg3 copy support
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
import queue
psycopg3 cursor objects
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import sys
from types import TracebackType
Compatibility objects with DBAPI 2.0
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import time
import datetime as dt
Mappings between PostgreSQL and Python encodings.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import codecs
from typing import Dict, Union
|__NotSupportedError
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Type, Union
from typing import cast
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import logging
from typing import List, Optional, Union
Maps of builtin types and names
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Dict, Iterator, Optional, Union
implementation-dependant but all the implementations share the same interface.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import os
import logging
libpq enum definitions for psycopg3
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from enum import IntEnum, auto
libpq access using ctypes
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import ctypes
import ctypes.util
types stub for ctypes functions
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any, Callable, Optional, Sequence
from ctypes import Array, pointer
Various functionalities to make easier to work with the libpq.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import cast, NamedTuple, Optional, Union
implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import os
import logging
Protocol objects to represent objects exposed by different pq implementations.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any, Callable, List, Optional, Sequence, Tuple, Union
from typing import TYPE_CHECKING
Protocol objects representing different implementations of the same classes.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any, Callable, Generator, Mapping
from typing import List, Optional, Sequence, Tuple, TypeVar, Union
SQL composition utility module
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import codecs
import string
Transaction context managers returned by Connection.transaction()
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import logging
psycopg3 types package
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from ..oids import builtins, INVALID_OID
from ..proto import AdaptContext
Adapters for arrays
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
import struct
Support for composite types adaptation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
import struct
Adapters for date/time types.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
import sys
Adapers for JSON types.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import json
from typing import Any, Callable, Optional
Adapters for network types.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Callable, Optional, Union, TYPE_CHECKING
Adapers for numeric types.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import struct
from typing import Any, Callable, Dict, Tuple, cast
Support for range types adaptation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
from typing import Any, Dict, Generic, Optional, Sequence, TypeVar, Type, Union
Adapters for None and boolean.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from ..pq import Format
from ..oids import builtins
Adapters for textual types.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Optional, Union, TYPE_CHECKING
Adapters for the UUID type.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Callable, Optional, TYPE_CHECKING
psycopg3 distribution version file.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
__version__ = "2.99.0"
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import select
PostgreSQL database adapter for Python - pure Python package
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
import os
/.eggs
/build
/dist
-/psycopg3_c.egg-info
pip install psycopg3[binary]
-Copyright (C) 2020 The Psycopg Team
+Copyright (C) 2020-2021 The Psycopg Team
psycopg3 -- PostgreSQL database adapter for Python -- C optimization package
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import sys
information. Will submit a bug.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any, Iterable, List, Optional, Sequence, Tuple
if a compiler is available.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from psycopg3_c cimport pq
from psycopg3_c.pq cimport libpq
This file is necessary to allow c-importing pxd files from this directory.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from psycopg3_c._psycopg3 cimport oids
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from typing import Any
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from libc.string cimport memcpy
from libc.stdint cimport uint16_t, uint32_t, int32_t
C implementation of generators for the communication protocols with the libpq
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from cpython.object cimport PyObject_CallFunctionObjArgs
Constants to refer to OIDS in C
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
# Use tools/update_oids.py to update this data.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cimport cython
from cpython.ref cimport Py_INCREF
libpq Python wrapper using cython bindings.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from psycopg3_c.pq cimport libpq
This file is necessary to allow c-importing pxd files from this directory.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from psycopg3_c.pq cimport libpq
psycopg3_c.pq.Conninfo object implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from psycopg3.pq.misc import ConninfoOption
psycopg3_c.pq.Escaping object implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from libc.string cimport strlen
from cpython.bytearray cimport PyByteArray_FromStringAndSize, PyByteArray_Resize
Libpq header definition for the cython psycopg3.pq implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cdef extern from "libpq-fe.h":
int PQlibVersion()
psycopg3_c.pq.PGcancel object implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cdef class PGcancel:
psycopg3_c.pq.PGconn object implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
from posix.unistd cimport getpid
from cpython.mem cimport PyMem_Malloc, PyMem_Free
psycopg3_c.pq.PGresult object implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cimport cython
from cpython.mem cimport PyMem_Malloc, PyMem_Free
PQbuffer object implementation.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cimport cython
from cpython.bytes cimport PyBytes_AsStringAndSize
Cython adapters for numeric types.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cimport cython
/*
* Utilities to deal with numbers.
*
- * Copyright (C) 2020 The Psycopg Team
+ * Copyright (C) 2020-2021 The Psycopg Team
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*/
Cython adapters for boolean.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cimport cython
Cython adapters for textual types.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
cimport cython
psycopg3-c distribution version file.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
__version__ = "2.99.0"
PostgreSQL database adapter for Python - optimisation package
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import os
import re
# test_sql.py - tests for the psycopg2.sql module
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import re
import datetime as dt
# Script to build binary psycopg3-c package.
# Built packages will be available in the `dist` directory.
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
set -euo pipefail
set -x
The script can be run at a new PostgreSQL release to refresh the module.
"""
-# Copyright (C) 2020 The Psycopg Team
+# Copyright (C) 2020-2021 The Psycopg Team
import os