[Tutor] Parsing Bible verses

John Fouhy john at fouhy.net
Tue May 26 07:55:02 CEST 2009


2009/5/26 Eduardo Vieira <eduardo.susan at gmail.com>:
> Now, a little farther on the topic of a Bible database. I'm not sure
> how I should proceed. I don't really have the db file I need, I will
> have to generate it somehow, from a bible software, because the
> version I want is for Portuguese. I have found a bible in sql, a bible
> in MS Access to give me some ideas on how to structure my database.
> But my question is do I really need a sql database for my need, since
> I will be only reading from it? Never adding or updating. One like
> sqlite. Would a pickled dictionary from Bible_reference to verse be
> faster? Should I work with anydbm?

If you don't want to use a database, you should probably use the shelve module.

However, there is really no particular reason not to use a relational
database.  It seems a solution fairly well suited to your problem.
Python has a database supplied these days: sqlite3.  I suggest using
that, rather than MS Access.


More information about the Tutor mailing list