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.7 and higher is required as of version 3.1.
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
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
Built Distributions
File details
Details for the file ceODBC-3.1.tar.gz
.
File metadata
- Download URL: ceODBC-3.1.tar.gz
- Upload date:
- Size: 171.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3099e978071b1fd234cac5d4ad8253646ca4aefa314f7332687ba4847a259a19 |
|
MD5 | 756d95cf521f00246efae92b008381e2 |
|
BLAKE2b-256 | bea7c4bd12fee195f577e81bed01f1de95fc204a360f8bfb2163ca74a7ae1697 |
File details
Details for the file ceODBC-3.1-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 782.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8c6e39604920afc37a6173aa7323e1da28d5f29917318500020e278f8498f21 |
|
MD5 | da62d53b29726af23d70ed78a282610f |
|
BLAKE2b-256 | 8142b4a7a71656f434ad28c37d8cc858056049dbf97377ed23227403f093bed0 |
File details
Details for the file ceODBC-3.1-cp311-cp311-win32.whl
.
File metadata
- Download URL: ceODBC-3.1-cp311-cp311-win32.whl
- Upload date:
- Size: 700.6 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4916775a9fb4c93ef908b4eb453bb59a6f4898b9339db29cc24b7c48c89dfaf2 |
|
MD5 | c51991fabc9e254d6c78a627390be87e |
|
BLAKE2b-256 | 5c773d2e6c6cd0727e21dd313b5f8af16851637731831eaefa88d7d268cc46f4 |
File details
Details for the file ceODBC-3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86236b6f92b8e54340d8ce55db76ef956d7403a3e4cf95330a32a8365dc55981 |
|
MD5 | 483249b26caf02a961052e4d9e2cfb78 |
|
BLAKE2b-256 | 90dd2e2416492e24afd558bbe91977756db1f53cf92cdbf2d8e3915adc312c81 |
File details
Details for the file ceODBC-3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 3.2 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1542f68beb5b60d0e3df41eec9fc22b85a6107c72e63eeb82cbf74f320734b4 |
|
MD5 | 49176ae468e5dbe0feef6a74f1ea0b18 |
|
BLAKE2b-256 | 9e003221911baf90a0171c6b26796abc6e78e40b4f3897ea10ab555c48dd59bf |
File details
Details for the file ceODBC-3.1-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 630.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a7a9b198203e875669233036e1e53cc90d258dd65dbecf61ca240220a9a2e1 |
|
MD5 | a163cfc5c9744cad62b4c847479b5099 |
|
BLAKE2b-256 | 8f5e9338c532bb6eb5ebd237c1a7bf63585f78765ec40e441cf33f81bd47ba2b |
File details
Details for the file ceODBC-3.1-cp310-cp310-win32.whl
.
File metadata
- Download URL: ceODBC-3.1-cp310-cp310-win32.whl
- Upload date:
- Size: 548.6 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b1ef7ab199be5c8582418244f8be80bfc23f73e892274a64cf210412f679b85 |
|
MD5 | e747131e04de4bf7e12e6dd4854fdb71 |
|
BLAKE2b-256 | 5c3dd0093939ab674503b6874e269be07620e823bad57bd219ff3deeca87545a |
File details
Details for the file ceODBC-3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf80849a3daf33b91c56676aff6fbada77def493e57852a15e12d4d02e7c2995 |
|
MD5 | a835df90b77122656bd710ed7268cc41 |
|
BLAKE2b-256 | 115276afbb1bba46cd42e4f87a31efaba06abc1c6cb4b8d890ce28bea98c2455 |
File details
Details for the file ceODBC-3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3799bfaa29f368816e36483b343a180431b73a5affb3519f2b98118b3fb895b |
|
MD5 | ce36e51f1f3f07133befe009f569464e |
|
BLAKE2b-256 | 2de0c7a457fb20edf42e212669cce4daacdd6fe3f96c4c87b6de9ddd7818ed8b |
File details
Details for the file ceODBC-3.1-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 478.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db10ac27b960e4db277479d76979ec754a777876ebbee39d6dd1e03feac21b8f |
|
MD5 | 20fdf1c902633f03b23ed1180d427514 |
|
BLAKE2b-256 | 75df4782ba55dee316a86d0adf5c5051e0e17679f923ddaf35cc89349081d142 |
File details
Details for the file ceODBC-3.1-cp39-cp39-win32.whl
.
File metadata
- Download URL: ceODBC-3.1-cp39-cp39-win32.whl
- Upload date:
- Size: 392.9 kB
- Tags: CPython 3.9, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 193bf580f1bcee0bd2d5e92c707db2252ba415d28d9d9703742b3820d65d0d6a |
|
MD5 | dc8674e0f5831457f2f719a8b99ae642 |
|
BLAKE2b-256 | d40ec7a273d1f2c297f267c093e7e3a4cf3e6f77d87898e3b6c5dc836ffa396e |
File details
Details for the file ceODBC-3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fac13acddc187f7dde44797388dce982295be967b473c0145c101314d081fb60 |
|
MD5 | 2519c80c1894ab34d728e24017fb818e |
|
BLAKE2b-256 | ea701783d022ced4bf9b201982cc0c45cb70d32a0892b17d47b32bc9c9e3a3b8 |
File details
Details for the file ceODBC-3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a2959fee7cce3867d55bcb596ad09f1d8e44186e34183301dc7d1406cbe7a37 |
|
MD5 | 7bb5947ff9577d77ddf3884dea99f481 |
|
BLAKE2b-256 | 4d44a5f5e9cd215da39cc152ddf49df5d519bf15c3b1abdee3ae7786d2daeaaf |
File details
Details for the file ceODBC-3.1-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 319.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c5a1075065e1e01657ae1f5479d4a8e010642506dd8093e3bc2efb6193d19e |
|
MD5 | 774e95505355ae7ee68b75c6dd26c64d |
|
BLAKE2b-256 | db0e65230307296dd8f4f72352b0e64e9fb5e1bcdf7ed1cd8d6deeba4140b3a9 |
File details
Details for the file ceODBC-3.1-cp38-cp38-win32.whl
.
File metadata
- Download URL: ceODBC-3.1-cp38-cp38-win32.whl
- Upload date:
- Size: 233.7 kB
- Tags: CPython 3.8, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2362531d600a7ec6322eeef9a74f536b422fcf9da74be8938aada5e94ef8300a |
|
MD5 | 2cdf5e455aff1cb95f37a3fd5d3858b9 |
|
BLAKE2b-256 | 7f495ca1c879f955570510a844a369b50efd21c305c02c06253567f5c22ae657 |
File details
Details for the file ceODBC-3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6345de9801a55eebf19f1e3a7d592c99244fb1ae214f8f617fe69ac61297c24 |
|
MD5 | 33120be7a9f846df8613651cdb5a0c09 |
|
BLAKE2b-256 | 4ca422f6d8b7ee17c4450a5cc81dd52e5fc9aa8f037ae71dd7fd3c31fb90f717 |
File details
Details for the file ceODBC-3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fc5c622ac6a6ecccbb12380ae7b8da22559210190f474bf07adfc4281a1d503 |
|
MD5 | 0a1a83bc9f52001902ccfc4fb0e05d8a |
|
BLAKE2b-256 | a1bd52f1b04aeb3be315c6bd3f22d218f068ddc7b6c69f438e0094a9ccd36f89 |
File details
Details for the file ceODBC-3.1-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 160.3 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9262ca4f92ce97b8c557d82dccccee2732c5149c884969977a47046ad84978ff |
|
MD5 | 910c689ae192e0c59b7316b09d8efb70 |
|
BLAKE2b-256 | 391602ed074d4c8db5ac3a6c65136d435efe4281ce85d18d991c5929a9be24f3 |
File details
Details for the file ceODBC-3.1-cp37-cp37m-win32.whl
.
File metadata
- Download URL: ceODBC-3.1-cp37-cp37m-win32.whl
- Upload date:
- Size: 76.4 kB
- Tags: CPython 3.7m, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f899a73fdf37b7098d9bc295b080eb4162daf00d8df8df41dee890e7b046b3ab |
|
MD5 | cd18f0b59a7aec92e8f5ae0be87d7e6f |
|
BLAKE2b-256 | 9dfccbbd896301150b2b6121d20bdbabb6aa946ceaefea5264b44463c06edc93 |
File details
Details for the file ceODBC-3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 747.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82f407d3c80442365f83cd03cfb4a4391d4d8bfc2a84ecab787f44fe6821433f |
|
MD5 | 7c539aa9228df67a37f21db06ec676c2 |
|
BLAKE2b-256 | 50d2945ed64c3d1d4dbf8371f5ecc864a7845ca7785057899df371548534a7a2 |
File details
Details for the file ceODBC-3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: ceODBC-3.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 738.9 kB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b0edc528c69729b13676029e9eada18ea1293f6a4bf0a7fde8db5709fcaf749 |
|
MD5 | f77d9836195b35a58e585a352b07ffc1 |
|
BLAKE2b-256 | c3c5504dbdc9383703a9ab6227327062dc53de7bd2e8d12480d7a05776733776 |