Skip to main content

Provide minimum implementation check and connection pool of PEP249.

Project description


Provide minimum implementation check and connection pool of PEP249.


pip install pep249


Connection Pool

Sample using phoenixdb with connection pool:

from pep249 import ConnectionPool

conn_pool = ConnectionPool(
    connection_factory=lambda: phoenixdb.connect(
        "http://localhost:8765/", autocommit=True

with conn_pool.connect() as connection:

Note: The connection pool does not actively initialize the connection, it is initialized only when it is needed.

Minimum implementation check

from pep249 import Connection, Cursor

assert issubclass(YOUR_CONNECTION_CLASS, Connection)
assert isinstance(YOUR_CONNECTION, Connection)

assert issubclass(YOUR_CURSOR_CLASS, Cursor)
assert isinstance(YOUR_CURSOR, Cursor)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pep249, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pep249-1.0.1.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View
Filename, size pep249-1.0.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page