Python Connector for Oracle
Python Connector for Oracle is a connectivity solution for accessing Oracle databases from Python applications. It fully implements the Python DB API 2.0 specification. The connector is distributed as a wheel package for Windows, macOS, and Linux.
Direct connection
The connector enables you to establish a direct connection to Oracle from a Python application via TCP/IP, eliminating the need for the database client libraries. A direct connection increases the speed of data transmission between the application and Oracle database server and streamlines the deployment process since you don't have to distribute any client libraries with the application.
Secure communication
The connector supports encrypted communications using SSL/TLS, SSH tunneling, and HTTP/HTTPS tunneling.
Connecting
To establish a connection to an Oracle database, import the connector and use
the connect() method with your connection parameters.
Import the connector
First, import the Oracle connector module:
import devart.oracle as oracle
Establish a connection
Call the connect() method and obtain a connection object.
my_connection = oracle.connect(
Direct=True, Host="your_server", ServiceName="your_service_name", UserName="your_username", Password="your_password"
)
Replace the example values with your actual connection values.
Querying data
Once connected to Oracle, you can execute SQL queries to retrieve data from your Oracle database.
Execute a query
Create a cursor object using the cursor() connection method.
my_cursor = my_connection.cursor()
Execute a SQL query using the execute() cursor method.
my_cursor.execute("SELECT * FROM employees")
Retrieve results using one of the fetch*() methods.
for row in my_cursor.fetchall():
print(row)
Parameterized queries
You can use parameterized queries to pass variable values to your SQL statements. This allows you to reuse the same query with different data and helps to prevent SQL injection attacks.
Pass parameters as a list or tuple to the execute() method:
query = "SELECT Id, Name FROM Contact WHERE Name = ? AND Email = ?"
params = ["Jordan Sanders", "jordansanders@example.com"]
my_cursor.execute(query, params)
results = my_cursor.fetchall()
for row in results:
print(row)
Each placeholder ? in the query is replaced with a corresponding value from the parameter list.
Ordering and activating the license
You can purchase a license for the connector on the ordering page:
https://www.devart.com/python/oracle/ordering.html
To activate the license, follow the instructions in the documentation:
https://docs.devart.com/python/oracle/activate-a-license.htm
What's new
Python Connector for Oracle 1.4
- Added support for Python 3.15
- Added support for Oracle 26ai
- Added support for the JSON data type in Oracle 21c and later
Metadata
Release files for devart-oracle-connector 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 56.9 MB
Release files / devart_oracle_connector-1.4.0-cp315-cp315-win_amd64.whl
| Download URL | devart_oracle_connector-1.4.0-cp315-cp315-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.15 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6a68528174ac391511e979bd3bfd883f24b4c0d52303f67e045e0e3c2d844740
|
|
BLAKE2b-256 checksum How to use checksums |
20aa89075fd45b7eea75bf6ccbc1c4c0a5aec67f266dc66ce601c76ed55631a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp315-cp315-win32.whl
| Download URL | devart_oracle_connector-1.4.0-cp315-cp315-win32.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.15 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
a0226850bbc9fa16668fe3096af135d5400fa95df29af6a4d19b2389a6b97abb
|
|
BLAKE2b-256 checksum How to use checksums |
4255268065508bdb7ea8504889ac6fb0851761b2a486531ad1427462f1b91570
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl
| Download URL | devart_oracle_connector-1.4.0-cp315-cp315-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.15 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
1708a9097060bc4fc5f982ea71360a0550a0e4a0c68e4771ab5d685115a4484c
|
|
BLAKE2b-256 checksum How to use checksums |
492f8406eb1e29c6f457fa1efa23a6cd6c4651b72430ab207901c2c14d687486
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl
| Download URL | devart_oracle_connector-1.4.0-cp315-cp315-macosx_10_15_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.15 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
f24a751c84d9efe6e6a6d4c3904d9ab82720f64b7c7fd1456bae8be619cb86e8
|
|
BLAKE2b-256 checksum How to use checksums |
f4b7ef67e70c45fcb0296e0ea9633aea8b18fc0707048da51eae677144327abd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp314-cp314-win_amd64.whl
| Download URL | devart_oracle_connector-1.4.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
134dfe61cf2b4e8fc1cdee55edb965bcbb2689f4b30520ca141db52be8651570
|
|
BLAKE2b-256 checksum How to use checksums |
e39c336c0699b64220933c3e0e2946737b0bf3a262c50e267961ed7ffa785d77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp314-cp314-win32.whl
| Download URL | devart_oracle_connector-1.4.0-cp314-cp314-win32.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.14 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
c16e12ad69113dd191fcbfd40bf9c78eb3394bab690f1cbd18c81e4e28ed59d9
|
|
BLAKE2b-256 checksum How to use checksums |
db051bd2ea2dc37caf82df9c1a0a3db48e64d88b95db0ece7cc94183f1c84797
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl
| Download URL | devart_oracle_connector-1.4.0-cp314-cp314-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.14 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
2d3fd90bb1f69575d975651405aab468532e45c51bb4e5af535dadd86aec54fe
|
|
BLAKE2b-256 checksum How to use checksums |
2f0a48418d6325a7d961a18b3aa02b902d308c518674cefb8f9267eded736764
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl
| Download URL | devart_oracle_connector-1.4.0-cp314-cp314-macosx_10_15_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.14 macOS 10.15+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
2328b3556bcfc4be22c21c513905063a765698d021e231fc0bb7b19ef63605a8
|
|
BLAKE2b-256 checksum How to use checksums |
a2bee1f9a38485ed0c5e5457d6beea4eda3b0eb77d5b9e3e58f2fded60656dc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp313-cp313-win_amd64.whl
| Download URL | devart_oracle_connector-1.4.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
2b289477515a7830626ec0e2d18f7741d8e474a98cc46a4201027f8d1bd36439
|
|
BLAKE2b-256 checksum How to use checksums |
b50ab1437bf622c95139a75c9628fb06f2b093d44d30b0163b102824d41b18ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp313-cp313-win32.whl
| Download URL | devart_oracle_connector-1.4.0-cp313-cp313-win32.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.13 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
92575a99936dade34a105b24d33b8c667b089e95e4979c8d30f4d713e94e0e5f
|
|
BLAKE2b-256 checksum How to use checksums |
c036eef64fb795635fa8169d61f9e4984c4412ed73cd200233fef706ba24f847
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl
| Download URL | devart_oracle_connector-1.4.0-cp313-cp313-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.13 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
3aafad139a3244125405adcf7023f73db8197b3a298a5b53c9f7f714b6a7adba
|
|
BLAKE2b-256 checksum How to use checksums |
ba64efc12e8752f9000d0ac7e66e658de639ac20ec7138e89466f4f2d4d72a5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl
| Download URL | devart_oracle_connector-1.4.0-cp313-cp313-macosx_10_13_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.13 macOS 10.13+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
42d4e08f86526aa1ee8cc251ec5752f22b36e738a28fe95db6de9c901d06ef7b
|
|
BLAKE2b-256 checksum How to use checksums |
cf430e0e9da87f7a25db76732d5453a7f9c193c4e558a06d45fd6ebbf62c4de1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp312-cp312-win_amd64.whl
| Download URL | devart_oracle_connector-1.4.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
6ec48079bacbb51f9a402441ee45f978f5a057bd6a43b0dba8f129f1fe0e0473
|
|
BLAKE2b-256 checksum How to use checksums |
fbb32490e66b2e95e27087f9c1d76012f6264972a7abf78994862053ff0fe39c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp312-cp312-win32.whl
| Download URL | devart_oracle_connector-1.4.0-cp312-cp312-win32.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
4fbd2d786029bf916b2efb5a4205cbb9a96e84b57a9bf9a2a434812385b2e2ed
|
|
BLAKE2b-256 checksum How to use checksums |
56c44a55d772596051b91bfae63afa6abfadd6b3bf3a91ccc815e90646a870e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl
| Download URL | devart_oracle_connector-1.4.0-cp312-cp312-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.12 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
e1cda9b3c9dd87fafb63cb520ae4d9fee7b29e64c5256ca28d3204152b0c7d73
|
|
BLAKE2b-256 checksum How to use checksums |
a96e89e2d7c2e16e855818e585ee648e516241553a6c06695c288c6b61f00669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl
| Download URL | devart_oracle_connector-1.4.0-cp312-cp312-macosx_10_9_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
c81f02a260f4997e9ca4654b34ef3953310f39ccedcde1bc277139d68ac80da2
|
|
BLAKE2b-256 checksum How to use checksums |
280fee44f15e8f29f6d4b04c12d4f457bc2bfb1170f1c65e9847103936cc4014
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp311-cp311-win_amd64.whl
| Download URL | devart_oracle_connector-1.4.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
0ac79c85ead65dccac76b602dd43013ab48b4bff02bb1730cef59bb07c7d2ee2
|
|
BLAKE2b-256 checksum How to use checksums |
a55cfef762f5763130b1187785b2345baa16b63f18b34a3b6c3022a266a82dc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp311-cp311-win32.whl
| Download URL | devart_oracle_connector-1.4.0-cp311-cp311-win32.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.11 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
83a76b0ae9a8c3fdc5e8342dfc725cfa200c9be35d99b5062e6d29d875170397
|
|
BLAKE2b-256 checksum How to use checksums |
ff215e96d1d60c54252380cdf4cd0bc269321f8d0d5a03df884367d5492b6d3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | devart_oracle_connector-1.4.0-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
53fe09cf6b80b7f9d4768d7d71ece9985de1b8febd22f9bc3d68a4543ec41964
|
|
BLAKE2b-256 checksum How to use checksums |
24f9a691ce8c67fdc05d4c77e1e67ac5a0409bef5244d4109ac11755b2f1c720
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl
| Download URL | devart_oracle_connector-1.4.0-cp311-cp311-macosx_10_9_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
15d89102ff032d20793f1bf33309a54e2d4705d996896ce59e7272c5a9e0f2c8
|
|
BLAKE2b-256 checksum How to use checksums |
966b6967e7c6dd564d1416a2b767e2f6f4428eb3457b0b21999e05b4671afb1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp310-cp310-win_amd64.whl
| Download URL | devart_oracle_connector-1.4.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
46f00f26aa56228578eb95d7cde260213cbb83850fa40737038414358b78a188
|
|
BLAKE2b-256 checksum How to use checksums |
c8d077280246f9452f007df14d51018e9ef2fdf238cf8f3b1b612466dc118b29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp310-cp310-win32.whl
| Download URL | devart_oracle_connector-1.4.0-cp310-cp310-win32.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.10 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
661e348be8c666e53b23a9105065940a7803700da3409de1cb680e561045e99d
|
|
BLAKE2b-256 checksum How to use checksums |
11acb419e40aaeb01ed0df565653d3bff5a942195ce4e0915c46be7b4a8b900b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl
| Download URL | devart_oracle_connector-1.4.0-cp310-cp310-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.10 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
10d9f16d0a71eb9a49de7ab7722d6227873bbc20a1fe93bb60f90d0c05ea53e6
|
|
BLAKE2b-256 checksum How to use checksums |
64d78520b389dd11da227b10de63ebc89de20d02a7770a30948f13a944c5f1f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Release files / devart_oracle_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl
| Download URL | devart_oracle_connector-1.4.0-cp310-cp310-macosx_10_9_universal2.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
8af45aa48bbac8abbb1515afe908a07b6d3549cc287706c21b1afe5c2729d4d1
|
|
BLAKE2b-256 checksum How to use checksums |
48fd3dcc29c2a82e7538b7c75f3ba49b4d03995a9e1d233102627f7491ed3a2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.4
|
Security for devart-oracle-connector 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.