Popular recipes by Farhad Fouladi http://code.activestate.com/recipes/users/492016/2003-03-12T01:25:46-08:00ActiveState Code RecipesUsing Berkeley DB Database (Python)
2003-03-12T01:25:46-08:00Farhad Fouladihttp://code.activestate.com/recipes/users/492016/http://code.activestate.com/recipes/189060-using-berkeley-db-database/
<p style="color: grey">
Python
recipe 189060
by <a href="/recipes/users/492016/">Farhad Fouladi</a>
(<a href="/recipes/tags/database/">database</a>).
</p>
<p>Berkeley DB is an open source database. Its most important advantages are its simplicity to use and its performance.</p>
<p>This is an introductory example, that shows how to create a database, add new elements in it (as Key/Value pairs) and finally how to print all content of the database. The example is divided in two independent part.</p>
Read configuration from a text file in WinIni format! (Python)
2002-06-10T12:23:59-07:00Farhad Fouladihttp://code.activestate.com/recipes/users/492016/http://code.activestate.com/recipes/132326-read-configuration-from-a-text-file-in-winini-form/
<p style="color: grey">
Python
recipe 132326
by <a href="/recipes/users/492016/">Farhad Fouladi</a>
(<a href="/recipes/tags/files/">files</a>).
</p>
<p>In a configuration file you have some options. These are grouped in name and value pairs. These pairs belong to one section and a section is indicated by a name in brackets.</p>
<p>The following Python class read such a file.</p>