Projects
View on GitHub
oracle/python-cx_Oracle
About
Obsolete Python interface to Oracle Database, now superseded by python-oracledb
Data & AnalyticsMeasured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -2
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalPython cx_Oracle
cx_Oracle was obsoleted by python-oracledb in 2022.
Python-oracledb uses the same Python DB API as cx_Oracle, and has many new features.
Install with:
python -m pip install oracledb
Usage is like:
import getpass
import oracledb
un = 'scott'
cs = 'localhost/orclpdb1'
pw = getpass.getpass(f'Enter password for {un}@{cs}: ')
with oracledb.connect(user=un, password=pw, dsn=cs) as connection:
with connection.cursor() as cursor:
sql = 'select systimestamp from dual'
for r in cursor.execute(sql):
print(r)
The source code for python-oracledb is at github.com/oracle/python-oracledb.
Explore related projects
Loading…