Skip to main content

Dictionary read on disk

Project description

Dictionary read on disk

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

You can install the method by typing:

pip install dikt

Basic usage

import dikt

# use any homogeneous dictionary
mapping = {"key_" + str(i): i for i in range(10000)}
# dump the dictionary to file
dikt.dump(mapping, "mapping.dikt")
# loading object is very fast
mapping = dikt.load("mapping.dikt")
# accessing item directly from the disk
# without loading the whole JSON is ultra fast
print(mapping["key_752"])

Authors

Maixent Chenebaux

Project details


Download files

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

Files for dikt, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size dikt-0.0.5-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size dikt-0.0.5.tar.gz (4.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page