Latest version

Once Oracle, Python, cxOracle package and Instant Client are ready, we can connect to Oracle from Python. The following program will connect to Oracle Database using username hr and password hr. In case you are trying to use a different account or a different version of Oracle database then feel free to change the details and experiment. The cxOracle is designed to conform to the Python database API 2.0 specification. It also provides you with a number of additions designed specifically for the Oracle Database. The cxOracle 7.x works perfectly fine with Python version 2.7, and with versions from 3.5 to 3.7. In this section, we will only use the Python version from 3.5 to 3.7.

Released:

A very simple asynchronous wrapper that allows you to get access to the Oracle database in asyncio programs. - GoodManWEN/cx_Oracle_async

Project description

A very simple asynchronous wrapper that allows you to get access to the Oracle database in asyncio programs.

Easy to use , buy may not the best practice for efficiency concern.

Requirements

  • cx_Oracle >= 8.1.0 (Take into consideration that author of cx_Oracle said he's trying to implement asyncio support , APIs maybe change in future version. Switch to 8.1.0 if there's something wrong makes it not gonna work.)

Install

Feature

  • Nearly all the same as aiomysql in asynchronous operational approach , with limited cx_Oracle feature support.
  • No automaticly date format transition built-in.
  • AQ feature added , check docs here for further information.
  • You can modify some of the connection properties simply like you're using cx_Oracle.
  • You can do basic insert / select / delete etc.
  • If you're connecting to database which is on a different machine from python process , you need to install oracle client module in order to use this library. Check cx-Oracle's installation guide for further information.

Documentation

Performance

query typeasynchronous multithreadingsynchronous multithreadingsynchronous single thread
fast single line query6259.80 q/s28906.93 q/s14805.61 q/s
single line insertion1341.88 q/s1898 q/s1685.17 q/s

/* Test platform: */
AMD Ryzen 3700x
Windows 10 LTSC
Oracle 19c
You can find performance test codes here.

Examples

Before running examples , make sure you've already installed a Oracle Client on your machine.

Release historyRelease notifications | RSS feed

0.3.2

Oracle

0.3.0

Download

0.2.3

0.2.2

Cx_oracle python connection

0.2.0

0.1.4

0.1.3

0.1.2

0.1.1

0.1.0

Download files

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

Files for cx-Oracle-async, version 0.3.2
Filename, sizeFile typePython versionUpload dateHashes
Filename, size cx_Oracle_async-0.3.2-py3-none-any.whl (11.1 kB) File type Wheel Python version py3 Upload dateHashes
Filename, size cx_Oracle_async-0.3.2.tar.gz (7.8 kB) File type Source Python version None Upload dateHashes
Close

Hashes for cx_Oracle_async-0.3.2-py3-none-any.whl

Hashes for cx_Oracle_async-0.3.2-py3-none-any.whl
AlgorithmHash digest
SHA25684deed43cff40fb0d784ea99aa63e98c5edd3c78ac21bc0a44319fa17c0ed6a2
MD562411b7ff4b87ed27954273f2f37ebe6
BLAKE2-256f2184014d0eb5055cc5b3fa5786eda0bfe2cc1c788ec833c3263ef2b00604023
CloseTutorial

Hashes for cx_Oracle_async-0.3.2.tar.gz

Cx Oracle Python Install

Hashes for cx_Oracle_async-0.3.2.tar.gz
AlgorithmHash digest
SHA2564637887fcf9eaa1f11b4742160ce661c1eb815364fb27986ef3e1801d81b003b
MD594ea7245f8d2d8fefb153adc76f4bf17
BLAKE2-25661f0634139d33cc5460f3bd8e95e2a9eff0c65b4a001595e4305288b761143cd