Skip to main content

A disk-based key/value store in Python.

Project description

DiskDict is a hashtable on your hard drive. It allows you to store KAZILLIONS (!) of key/value pairs and interact with them as you would a Python dictionary, all the while never storing more than two key/value pairs in memory simultaneously. The key/value pairs can be anything that’s serializable (you specify the serializer and deserializer, with repr and eval as the default). Since we’re operating on the disk, big O of all operations are dependent on the host operating system’s file access complexities.

>>> from disk_dict import DiskDict
>>> from numpy import array
>>> dd = DiskDict('my_disk_dict')
>>> a = array([[1,2],[3,4]])
>>> dd[a] = 'I was pointed to by ' + repr(a)
>>> dd[a]
'I was pointed to by array([[1, 2],\n       [3, 4]])'
>>> del dd[a]
>>> dd[a]
>>>

PyPI: https://pypi.python.org/pypi?name=disk_dict&:action=display

Github: https://github.com/AWNystrom/DiskDict/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

disk_dict-2.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

disk_dict-2.2.0.macosx-10.5-x86_64.exe (66.8 kB view details)

Uploaded Source

File details

Details for the file disk_dict-2.2.0.tar.gz.

File metadata

  • Download URL: disk_dict-2.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for disk_dict-2.2.0.tar.gz
Algorithm Hash digest
SHA256 daa2f4413542f24a24f328662e9584967ef885b8c451c936b921d0dfe56bdadf
MD5 5aa66e7d946263295bb1c44d46f75d02
BLAKE2b-256 132b9898c18c4e86b3a32427e3e1728e00f38a03d1eb32149b64743b800d6dc9

See more details on using hashes here.

File details

Details for the file disk_dict-2.2.0.macosx-10.5-x86_64.exe.

File metadata

File hashes

Hashes for disk_dict-2.2.0.macosx-10.5-x86_64.exe
Algorithm Hash digest
SHA256 407a20aeddfeb676aa1931a4a20c26bfcb421c430fabf5a26be4f53078f1b8ff
MD5 9ea47d9f7bf8b85b8244b7a34f1e8fa4
BLAKE2b-256 0ecd834a8064573977fa580f6ce1c90dd1a6b8e8350ad08ce09782b0eae12c15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page