Skip to main content

a dict that supports alias of KEY

Project description

This module helps users to make multiple keys dict with same value. In addition to that, this dict automatically gzip-compress values. So it’s very efficient.

I hope this module helps you python programing in your lap-top PC.


Install cachelite:

pip install aliasdict

Then you can use it.

import aliasdict from AliasDict

adct = AliasDict()
#if you don't need value compression, AliasDict(compress=False)

#put a key-value

#set a alias to key
adct.set_alias("YOUR_KEY", "YOUR_ALIAS")

#get value by alias

with open( "PATH_TO_FILE", "wb") as f:

with open( "PATH_TO_FILE", "wb") as f:

with open( "PATH_TO_FILE", "rb") as f:
    adct = AliasDict.load(f)

with open( "PATH_TO_FILE", "rb") as f:
    adct = AliasDict.loads(

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 aliasdict, version 0.9.5
Filename, size File type Python version Upload date Hashes
Filename, size aliasdict-0.9.5.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page