a dict that supports alias of KEY
Project description
Install cachelite:
pip install aliasdict
Then you can use it.
import aliasdict from AliasDict
adct = AliasDict()
#put a key-value
adct["YOUR_KEY"] = "YOUR_VALUE"
#set a alias to key
adct.set_alias("YOUR_KEY", "YOUR_ALIAS")
#get value by alias
adct["YOUR_ALIAS"]
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
aliasdict-0.9.2.tar.gz
(2.6 kB
view details)
File details
Details for the file aliasdict-0.9.2.tar.gz.
File metadata
- Download URL: aliasdict-0.9.2.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eebfbef51cd248870e048144cc5fd1c976069a9070b2246b72d3485277c9c8bb
|
|
| MD5 |
32e2daeaceaddaf9164d4d5e0d522ad1
|
|
| BLAKE2b-256 |
f401c0fe31eb1a70b41d8bae7210f8ce3b442beed57f5d4f3181b549f9f530e5
|