Skip to content

Commit bdd3eb3

Browse files
committed
update python database connectors now that oracle moved from sourceforge to github
1 parent 46fd45d commit bdd3eb3

3 files changed

Lines changed: 37 additions & 9 deletions

File tree

‎all.html‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7943,13 +7943,22 @@ <h2>Connecting to a database with Python</h2>
79437943
library. The most common libraries for relational databases are:</p>
79447944
<ul>
79457945
<li>
7946-
<p><a href="http://initd.org/psycopg/">psycopg2</a> for PostgreSQL</p>
7946+
<p><a href="http://initd.org/psycopg/">psycopg2</a>
7947+
(<a href="https://github.com/psycopg/psycopg2">source code</a>)
7948+
for PostgreSQL.</p>
79477949
</li>
79487950
<li>
7949-
<p><a href="https://pypi.python.org/pypi/MySQL-python/1.2.5">MySQLdb</a> for MySQL</p>
7951+
<p><a href="https://pypi.python.org/pypi/MySQL-python/1.2.5">MySQLdb</a>
7952+
(<a href="https://github.com/farcepest/MySQLdb1">source code</a>)
7953+
for MySQL. Note that this driver's development is mostly frozen so
7954+
evaluating alternative drivers is wise if you are using
7955+
<a href="/mysql.html">MySQL</a> as a backend.</p>
79507956
</li>
79517957
<li>
7952-
<p><a href="http://cx-oracle.sourceforge.net/">cx_Oracle</a> for Oracle</p>
7958+
<p><a href="https://oracle.github.io/python-cx_Oracle/index.html">cx_Oracle</a> for
7959+
Oracle Database (<a href="https://github.com/oracle/python-cx_Oracle">source code</a>).
7960+
Oracle moved their
7961+
<a href="https://blogs.oracle.com/developers/oracle-database-python-driver-now-on-github">open source driver code from SourceForge to GitHub in 2017</a>.</p>
79537962
</li>
79547963
</ul>
79557964
<p>SQLite support is built into Python 2.7+ and therefore a separate library

‎databases.html‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,22 @@ <h2>Connecting to a database with Python</h2>
174174
library. The most common libraries for relational databases are:</p>
175175
<ul>
176176
<li>
177-
<p><a href="http://initd.org/psycopg/">psycopg2</a> for PostgreSQL</p>
177+
<p><a href="http://initd.org/psycopg/">psycopg2</a>
178+
(<a href="https://github.com/psycopg/psycopg2">source code</a>)
179+
for PostgreSQL.</p>
178180
</li>
179181
<li>
180-
<p><a href="https://pypi.python.org/pypi/MySQL-python/1.2.5">MySQLdb</a> for MySQL</p>
182+
<p><a href="https://pypi.python.org/pypi/MySQL-python/1.2.5">MySQLdb</a>
183+
(<a href="https://github.com/farcepest/MySQLdb1">source code</a>)
184+
for MySQL. Note that this driver's development is mostly frozen so
185+
evaluating alternative drivers is wise if you are using
186+
<a href="/mysql.html">MySQL</a> as a backend.</p>
181187
</li>
182188
<li>
183-
<p><a href="http://cx-oracle.sourceforge.net/">cx_Oracle</a> for Oracle</p>
189+
<p><a href="https://oracle.github.io/python-cx_Oracle/index.html">cx_Oracle</a> for
190+
Oracle Database (<a href="https://github.com/oracle/python-cx_Oracle">source code</a>).
191+
Oracle moved their
192+
<a href="https://blogs.oracle.com/developers/oracle-database-python-driver-now-on-github">open source driver code from SourceForge to GitHub in 2017</a>.</p>
184193
</li>
185194
</ul>
186195
<p>SQLite support is built into Python 2.7+ and therefore a separate library

‎source/content/pages/09-data/02-databases.markdown‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,21 @@ Find out about Python applications with a MySQL backed on the dedicated
9797
To work with a relational database using Python, you need to use a code
9898
library. The most common libraries for relational databases are:
9999

100-
* [psycopg2](http://initd.org/psycopg/) for PostgreSQL
100+
* [psycopg2](http://initd.org/psycopg/)
101+
([source code](https://github.com/psycopg/psycopg2))
102+
for PostgreSQL.
101103

102-
* [MySQLdb](https://pypi.python.org/pypi/MySQL-python/1.2.5) for MySQL
104+
* [MySQLdb](https://pypi.python.org/pypi/MySQL-python/1.2.5)
105+
([source code](https://github.com/farcepest/MySQLdb1))
106+
for MySQL. Note that this driver's development is mostly frozen so
107+
evaluating alternative drivers is wise if you are using
108+
[MySQL](/mysql.html) as a backend.
109+
110+
* [cx\_Oracle](https://oracle.github.io/python-cx_Oracle/index.html) for
111+
Oracle Database ([source code](https://github.com/oracle/python-cx_Oracle)).
112+
Oracle moved their
113+
[open source driver code from SourceForge to GitHub in 2017](https://blogs.oracle.com/developers/oracle-database-python-driver-now-on-github).
103114

104-
* [cx\_Oracle](http://cx-oracle.sourceforge.net/) for Oracle
105115

106116
SQLite support is built into Python 2.7+ and therefore a separate library
107117
is not necessary. Simply "import sqlite3" to begin interfacing with the

0 commit comments

Comments
 (0)