updated .env file and working now

This commit is contained in:
abhishek
2026-05-26 11:18:35 +00:00
parent 0235ccbaa2
commit 8e936240ee
6335 changed files with 819584 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
"""
psycopg -- PostgreSQL database adapter for Python -- C optimization package
"""
# Copyright (C) 2020 The Psycopg Team
import sys
# This package shouldn't be imported before psycopg itself, or weird things
# will happen
if "psycopg" not in sys.modules:
raise ImportError("the psycopg package should be imported before psycopg_binary")
from .version import __version__ as __version__ # noqa

View File

@@ -0,0 +1,84 @@
"""
Stub representaton of the public objects exposed by the _psycopg module.
TODO: this should be generated by mypy's stubgen but it crashes with no
information. Will submit a bug.
"""
# Copyright (C) 2020 The Psycopg Team
from typing import Any, Iterable, List, Optional, Sequence, Tuple
from psycopg import pq
from psycopg import abc
from psycopg.rows import Row, RowMaker
from psycopg.adapt import AdaptersMap, PyFormat
from psycopg.pq.abc import PGconn, PGresult
from psycopg.connection import BaseConnection
from psycopg._compat import Deque
class Transformer(abc.AdaptContext):
types: Optional[Tuple[int, ...]]
formats: Optional[List[pq.Format]]
def __init__(self, context: Optional[abc.AdaptContext] = None): ...
@classmethod
def from_context(cls, context: Optional[abc.AdaptContext]) -> "Transformer": ...
@property
def connection(self) -> Optional[BaseConnection[Any]]: ...
@property
def encoding(self) -> str: ...
@property
def adapters(self) -> AdaptersMap: ...
@property
def pgresult(self) -> Optional[PGresult]: ...
def set_pgresult(
self,
result: Optional["PGresult"],
*,
set_loaders: bool = True,
format: Optional[pq.Format] = None,
) -> None: ...
def set_dumper_types(self, types: Sequence[int], format: pq.Format) -> None: ...
def set_loader_types(self, types: Sequence[int], format: pq.Format) -> None: ...
def dump_sequence(
self, params: Sequence[Any], formats: Sequence[PyFormat]
) -> Sequence[Optional[abc.Buffer]]: ...
def as_literal(self, obj: Any) -> bytes: ...
def get_dumper(self, obj: Any, format: PyFormat) -> abc.Dumper: ...
def load_rows(self, row0: int, row1: int, make_row: RowMaker[Row]) -> List[Row]: ...
def load_row(self, row: int, make_row: RowMaker[Row]) -> Optional[Row]: ...
def load_sequence(
self, record: Sequence[Optional[abc.Buffer]]
) -> Tuple[Any, ...]: ...
def get_loader(self, oid: int, format: pq.Format) -> abc.Loader: ...
# Generators
def connect(conninfo: str) -> abc.PQGenConn[PGconn]: ...
def execute(pgconn: PGconn) -> abc.PQGen[List[PGresult]]: ...
def send(pgconn: PGconn) -> abc.PQGen[None]: ...
def fetch_many(pgconn: PGconn) -> abc.PQGen[List[PGresult]]: ...
def fetch(pgconn: PGconn) -> abc.PQGen[Optional[PGresult]]: ...
def pipeline_communicate(
pgconn: PGconn, commands: Deque[abc.PipelineCommand]
) -> abc.PQGen[List[List[PGresult]]]: ...
def wait_c(
gen: abc.PQGen[abc.RV], fileno: int, timeout: Optional[float] = None
) -> abc.RV: ...
# Copy support
def format_row_text(
row: Sequence[Any], tx: abc.Transformer, out: Optional[bytearray] = None
) -> bytearray: ...
def format_row_binary(
row: Sequence[Any], tx: abc.Transformer, out: Optional[bytearray] = None
) -> bytearray: ...
def parse_row_text(data: abc.Buffer, tx: abc.Transformer) -> Tuple[Any, ...]: ...
def parse_row_binary(data: abc.Buffer, tx: abc.Transformer) -> Tuple[Any, ...]: ...
# Arrays optimization
def array_load_text(
data: abc.Buffer, loader: abc.Loader, delimiter: bytes = b","
) -> List[Any]: ...
def array_load_binary(data: abc.Buffer, tx: abc.Transformer) -> List[Any]: ...
# vim: set syntax=python:

View File

@@ -0,0 +1,11 @@
"""
psycopg-c distribution version file.
"""
# Copyright (C) 2020 The Psycopg Team
# Use a versioning scheme as defined in
# https://www.python.org/dev/peps/pep-0440/
__version__ = "3.1.18"
# also change psycopg/psycopg/version.py accordingly.