A tutorial for Database management

Andy Todd andy47 at halfcooked.com
Wed Jan 9 21:45:06 EST 2002


Franco <bgfra at NOSPAM.hotmail.co> wrote in news:a116e3$kq$1 at wanadoo.fr:

> Where can I find a good tutorial explaining from the beginning how to 
> manage a database with Python?
> 
> Thanks

Franco,

If you are talking about relational database management systems (Oracle, 
Sybase, DB2, SQL Server, etc.) you first point of call should be the 
database SIG (http://www.python.org/sigs/db-sig/), which should lead you to 
the database topic guide (http://www.python.org/topics/database). This 
should, at least, get you started. In particular take a look at the DB-API 
spec v2.0 as most of the database modules for Python adhere to it.

If you want to store bits and pieces from your Python programs at the file 
system but don't need the overhead of a full relational database you should 
look at the pickle and shelve modules in the standard library (sections 
3.14 and 3.17 of the Python Library Reference respectively).

For a good intermediate solution, take a look at anydbm (section 7.8 of the 
Python Library Reference), which is also very well described in the 2nd 
Edition of "Programming Python" by Mark Lutz 
(http://www.oreilly.com/catalog/python2/)

HTH,
Andy

-- 
Contents free posts a speciality



More information about the Python-list mailing list