About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 116
  • Price: Free |
  • Operating system: Linux
  • Publisher: Jacob Sondergaard
See full specifications

linux default icondbdict Publisher's description

dbdict is a dictionary-like object with SQLite backend.

dbdict is a dictionary-like object with SQLite backend.

Python dictionaries are very efficient objects for fast data access. But when data is too large to fit in memory, you want to keep data on disk but available for fast random access.

Here's a dictionary-like object which uses a SQLite database backend for random access to the dictionary's key-value pairs:

* You can work on datasets which do not fit in memory. Size is not limited by memory, but by disk. Can hold up to several tera-bytes of data (thanks to SQLite).

* Behaves like a dictionary (can be used in place of a dictionary object in many cases) for storing numbers, strings and binary data.

* Data persists between program runs, and is written to disk immediately when inserting a key-value pair in the dictionary.

* ACID (data integrity): Storage file integrity is assured. No half-written data. It's really hard to mess up data.

* Efficient: You do not have to re-write a whole database file when changing only one item. Only the relevant parts of the file are changed.

* You can mix several key types (you can do d['foo']=bar and d[7]=5468) as with a regular dict object.

* You can share this dictionary with other languages and systems (SQLite databases are portable, and the SQlite library is available on a wide range of systems/languages, from mainframes to PDA/iPhone, from Python to Java, C/C++, C#, Perl etc.)


Use it like a standard dictionary, except that you give it a name (eg.'tempdict'):

from dbdict import dbdict
d = dbdict('tempdict')
d['foo'] = 'bar'
# At this point, the key value pair foo and bar is written to disk.
d['John'] = 'doh!'
d['pi'] = 3.999
d['pi'] = 3.14159 # replaces the previous version of pi
d['pi'] += 1
d.close() # close the database file

You can access your dictionary later on:

d = dbdict('tempdict')
del d['foo']

if 'John' in d:
print 'John is in there !'
print d.items()

System Requirements:

В· Python
Program Release Status: Minor Update
Program Install Support: Install and Uninstall

dbdict Tags:

Click on a tag to find related softwares

Is dbdict your software?

Manage your software

Most Popular

linux default icon A2Billing 1.6.0
A2Billing is a billing system interactive with Asterisk to give any Telecom company traditional offering VOIP... Read more
linux default icon FrontAccounting 2.3.10
FrontAccounting is free and released under the GNU General Public License.
linux default icon PgAdmin III for Linux 1.14.1
pgAdmin is the most popular and feature rich Open Source administration and development platform for... Read more
linux default icon RazorSQL for Linux 5.6.3
RazorSQL is an SQL query tool, database browser, SQL editor,....
linux default icon Salat Book 1.00
Salat / Namaz prayer database and tracking application