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
Metadata
Release files for disk_dict 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| disk_dict-2.2.0.tar.gz | 3.4 kB | Without provenance | Details for disk_dict-2.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| disk_dict-2.2.0.macosx-10.5-x86_64.exe | Details for disk_dict-2.2.0.macosx-10.5-x86_64.exe |
Total release size: 70.2 kB
Release files / disk_dict-2.2.0.tar.gz
| Download URL | disk_dict-2.2.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
daa2f4413542f24a24f328662e9584967ef885b8c451c936b921d0dfe56bdadf
|
|
BLAKE2b-256 checksum How to use checksums |
132b9898c18c4e86b3a32427e3e1728e00f38a03d1eb32149b64743b800d6dc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / disk_dict-2.2.0.macosx-10.5-x86_64.exe
| Download URL | disk_dict-2.2.0.macosx-10.5-x86_64.exe |
|---|---|
| Size | 66.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
407a20aeddfeb676aa1931a4a20c26bfcb421c430fabf5a26be4f53078f1b8ff
|
|
BLAKE2b-256 checksum How to use checksums |
0ecd834a8064573977fa580f6ce1c90dd1a6b8e8350ad08ce09782b0eae12c15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for disk_dict 2.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.