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.

Source Distribution

dikt-0.0.5.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

dikt-0.0.5-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

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