Skip to main content

Python interface to ODBC

Project description

Open Source Python/ODBC Utility - ceODBC

ceODBC is a Python extension module that enables access to databases using the ODBC API and conforms to the Python database API 2.0 specifications with a number of additions. Python 3.6 and higher is required as of version 3.0.

See https://www.python.org/dev/peps/pep-0249 for more information on the Python database API specification.

For feedback or patches, please use GitHub issues: https://github.com/anthony-tuininga/ceODBC/issues

Installation

python -m pip install ceODBC --upgrade

Add the --user option if you do not have system access. Binaries are available for Linux and Windows as a convenience.

Usage Example

Note that the DSN in the example below should be replaced with an appropriate string that ODBC understands. For example, if a system DSN called "MYDATA" has been created in the ODBC manager, use "DSN=MYDATA" to connect. For what is termed DSN-less connections, search the Internet for appropriate strings.

import ceODBC

connection = ceODBC.connect(DSN)

cursor = connection.cursor()
cursor.execute("""
        select Col1, Col2, Col3
        from SomeTable
        where Col4 = ?
          and Col5 between ? and ?""",
        ["VALUE", 5, 10])
for column_1, column_2, column_3 in cursor:
    print("Values:", column_1, column_2, column_3)

Notes

If your driver is not capable of transactions (often indicated by the exception "driver not capable" when connecting) then use the following statement to connect instead:

connection = ceODBC.connect(DSN, autocommit=True)

For further information see

http://ceodbc.readthedocs.org

Project details


Download files

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

Source Distribution

ceODBC-3.0.tar.gz (161.8 kB view details)

Uploaded Source

Built Distributions

ceODBC-3.0-cp39-cp39-win_amd64.whl (96.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

ceODBC-3.0-cp39-cp39-win32.whl (80.8 kB view details)

Uploaded CPython 3.9 Windows x86

ceODBC-3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (790.5 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ceODBC-3.0-cp38-cp38-win_amd64.whl (96.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

ceODBC-3.0-cp38-cp38-win32.whl (81.2 kB view details)

Uploaded CPython 3.8 Windows x86

ceODBC-3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (837.6 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ceODBC-3.0-cp37-cp37m-win_amd64.whl (94.1 kB view details)

Uploaded CPython 3.7m Windows x86-64

ceODBC-3.0-cp37-cp37m-win32.whl (79.2 kB view details)

Uploaded CPython 3.7m Windows x86

ceODBC-3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (734.2 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

ceODBC-3.0-cp36-cp36m-win_amd64.whl (106.1 kB view details)

Uploaded CPython 3.6m Windows x86-64

ceODBC-3.0-cp36-cp36m-win32.whl (88.5 kB view details)

Uploaded CPython 3.6m Windows x86

ceODBC-3.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (737.5 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

File details

Details for the file ceODBC-3.0.tar.gz.

File metadata

  • Download URL: ceODBC-3.0.tar.gz
  • Upload date:
  • Size: 161.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0.tar.gz
Algorithm Hash digest
SHA256 31519669d78e73ef5ac7367e59e3ccccebf2f16efdc9be2b1b236b33e614d261
MD5 33a92413b4fb6d445f25cca0ac56ed78
BLAKE2b-256 b22acbb80c16366be164dd319d215fa652a35f2a7ec4ce113c28e0a6b0d2a05f

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: ceODBC-3.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 96.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fa24f534427ffc39e71f01aca905254c45acb9fb818f405b516fc3b63b80bc5d
MD5 28bfb28c82ede9fe53a79906a3cd4433
BLAKE2b-256 e202dfb3195199fb45c1fff2422486940a525edd73aada51e956571d4c112ea5

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp39-cp39-win32.whl.

File metadata

  • Download URL: ceODBC-3.0-cp39-cp39-win32.whl
  • Upload date:
  • Size: 80.8 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 62f7947cc5304d2204d1b3ab43634bb8b98ddceec321c3095621963aeba9e406
MD5 07477a2d3f6aa0c5c5efa26ddeed1eab
BLAKE2b-256 2e82a6fba3a1f4b03660ba62fdfa018b62bfa82fd7aeed2291c0601977b59a0a

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ceODBC-3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7a5533c995f2a34175700b6c5eb6c3e0312c60ff40de79c9c15bfcd0568dd9ab
MD5 f4ab0dc6b35238a976e36546d9c63dff
BLAKE2b-256 06e037347e497d2f0fe17e3b0c4ecc8bec9592d4b88f1b634a08bebd6263231d

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: ceODBC-3.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 96.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cbf7ce20dedb3a70deead1f84768cde374f7cf3e6b4fe3e5bfe0908e5324bf79
MD5 ba4207950135ed4f12c29658db5cbaef
BLAKE2b-256 bf210587ef658ff1a5f222d62b68a73df863c23857a95478f37524e7e2f6df59

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp38-cp38-win32.whl.

File metadata

  • Download URL: ceODBC-3.0-cp38-cp38-win32.whl
  • Upload date:
  • Size: 81.2 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e97ee5138962a42b2fa8786cac892a11babccfe2e008bb4082a9ae1a058f7670
MD5 3c40ca24b64e6820d321f955e782ad62
BLAKE2b-256 c8a1dd3084913ff407ffda8b74561b9ee7ad7dd8fcce6b20a17b7da694bca155

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ceODBC-3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e90bb2f6b4fc8d09621d0bdeb2ac411fc3881f6c3e5a816de90e03ea7eb5f712
MD5 b2767c0e03720214c245122e9a33774a
BLAKE2b-256 423fe985d395a84ceb201300b4a8a856e756e68e5bfa46f04227a77db764963a

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: ceODBC-3.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 94.1 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 833bf6d2ea38d187bd6f85ace261fd6749b5d919e9dd57eb7e821c20dc790086
MD5 55c3ab0d7c171151ad6182ac0d7adc15
BLAKE2b-256 cdda8dca60bff6754bcd8fd6296dfc3e79f2501ca176491fa63646f6ccda2d43

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp37-cp37m-win32.whl.

File metadata

  • Download URL: ceODBC-3.0-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 79.2 kB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 caa0738db40afc08b97b5ef94ca25048505ca588d232f8f08d4196eedb79b8fd
MD5 2f826c27146f644cc0be66b6b31aad79
BLAKE2b-256 036995c8183fe6fcf89645d7a8e5a07231d64bb0d08aa21dcbdfe56aee82af79

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ceODBC-3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e25ab09b84a72206fe60894206cfe16bcbf3301f40b1e6e64b3127a615eba606
MD5 5bbf918c951ae6cbbfd1bbf4da27ad0d
BLAKE2b-256 92d410d7f74884f37ca5e8da2be536c0bba4610ae0ac3fbbe63d9e6a0c84860b

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: ceODBC-3.0-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 106.1 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 7f78275e66b9684cc86c64a90f86382433e97e74405efc2115ed68cd3fdb011e
MD5 bd9f80d18bc4d52afdb62360ece155fd
BLAKE2b-256 30a186c71b00a3a8a2590874b01fb073b951d0e37813da03f0074c85bbb3a27d

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp36-cp36m-win32.whl.

File metadata

  • Download URL: ceODBC-3.0-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 88.5 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for ceODBC-3.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 063c60848e180baf8e9de389be21fdaa5995cb0a2f18f9a9c4352d2b889a6a50
MD5 a872834acd0408b9fbca5bc855a92ee5
BLAKE2b-256 45d35fb3f844aa53114b95a85001b0a98d81563e03df95d05ac1f66a66d56d53

See more details on using hashes here.

File details

Details for the file ceODBC-3.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ceODBC-3.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee396de560ef1491baeb2a00452a53c1caef8ba89631f7fb91a380dcef902210
MD5 b3850ec7b675165d095e78ebd6c6c675
BLAKE2b-256 4f8744912d37a4d02caa88b903edb031433e790625a5bb737b1bbfe366ed1ced

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page