Skip to main content

dbapi2abc

This package provides abstract classes to present an interface to PEP249 compliant database Connection and Cursor objects.

This allows you to use type hints on functions handling database connections and cursors without needing to specify the specific backend database engine being used.

from dbapi2abc import Connection, Cursor

class MyObject():
    def __init__(self, db: Connection):
        self.db = db

    def run_some_query(self) -> Cursor:
        cur = self.db.cursor()
        cur.execute("SELECT * FROM Table")
        return cur

Metadata

Release files for dbapi2abc 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbapi2abc 1.1.3
File Size Uploaded
dbapi2abc-1.1.3.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbapi2abc 1.1.3
File Interpreter ABI Platform
dbapi2abc-1.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / dbapi2abc-1.1.3.tar.gz

Download URL dbapi2abc-1.1.3.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5b18607eff9055d517f7ac5f5eb38560d994a1f8d197083cb39bd271f7a62cde
BLAKE2b-256 checksum
How to use checksums
977ab03cf677f1ec854830313d302dba44cb31386b39021f0726e5dfafc228ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / dbapi2abc-1.1.3-py3-none-any.whl

Download URL dbapi2abc-1.1.3-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0aeb8f17772325767f25a145a5bd1d24ac7723714ba601a89dab26256190f96c
BLAKE2b-256 checksum
How to use checksums
419e5758e802130036a29fbb6034b2851f46896d59080393c3c36474372698bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files

1.1.1

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page