alt-python-pydbc-oracle
pydbc driver for Oracle Database via python-oracledb (thin mode).
Installation
uv add alt-python-pydbc-oracle
URL format
pydbc:oracle://user:password@host:port/service_name
The port defaults to 1521 if omitted.
Usage
import pydbc_oracle # registers OracleDriver with DriverManager
from pydbc_core import DriverManager
conn = DriverManager.get_connection(
"pydbc:oracle://system:password@localhost:1521/FREEPDB1"
)
stmt = conn.create_statement()
rs = stmt.execute_query("SELECT 1 FROM dual")
print(rs.rows)
conn.close()
Parameterised queries
# Positional parameters (translated to :1, :2 numerics)
ps = conn.prepare_statement("SELECT * FROM users WHERE id = ?")
ps.set_int(1, 42)
rs = ps.execute_query()
# Named parameters (translated to :1, :2 numerics)
ps = conn.prepare_statement("SELECT * FROM users WHERE id = :id")
ps.set_int(1, 42)
rs = ps.execute_query()
Paramstyle note
python-oracledb uses named paramstyle internally (:name placeholders), but pydbc
forces numeric (:1, :2) for this driver because the ParamstyleNormalizer
handles both ? and :name inputs and produces numeric output that oracledb accepts.
Documentation
License
MIT
Metadata
Release files for alt-python-pydbc-oracle 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| alt_python_pydbc_oracle-1.1.0.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alt_python_pydbc_oracle-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / alt_python_pydbc_oracle-1.1.0.tar.gz
| Download URL | alt_python_pydbc_oracle-1.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09265c481dc843e1551b186de36321765b0147e87878685be6953bfe0ca37ca4
|
|
BLAKE2b-256 checksum How to use checksums |
69888570c2f3490225691dc206d6c6af1eb845bc4c8e22b28e2a04d96fb9ec62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / alt_python_pydbc_oracle-1.1.0-py3-none-any.whl
| Download URL | alt_python_pydbc_oracle-1.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ea4765fffb5967474ac4b397db250179b9c4cc42328308298344465a0a5ab25
|
|
BLAKE2b-256 checksum How to use checksums |
1fb2cfa3b322e446b850c60bd810723755a1f67f5551e41d87e22afb93d39179
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for alt-python-pydbc-oracle 1.1.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.