AliasDict
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.
Quickstart
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
adct["YOUR_KEY"] = "YOUR_VALUE"
#set a alias to key
adct.set_alias("YOUR_KEY", "YOUR_ALIAS")
#get value by alias
adct["YOUR_ALIAS"]
#save1
with open( "PATH_TO_FILE", "wb") as f:
adct.dump(f)
#save2
with open( "PATH_TO_FILE", "wb") as f:
f.write(adct.dumps())
#load1
with open( "PATH_TO_FILE", "rb") as f:
adct = AliasDict.load(f)
#load2
with open( "PATH_TO_FILE", "rb") as f:
adct = AliasDict.loads(f.read())
Metadata
Release files for aliasdict 0.9.5
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 |
|---|---|---|---|---|
| aliasdict-0.9.5.tar.gz | 3.0 kB | Without provenance | Details for aliasdict-0.9.5.tar.gz |
Release files / aliasdict-0.9.5.tar.gz
| Download URL | aliasdict-0.9.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4363299478becfaec8330cdc889967b17b843427c4a91b6a28e1cd3da2fe6f51
|
|
BLAKE2b-256 checksum How to use checksums |
61adaf2fcbe2f98b6083e5f6d3b3409821bae1a8a926e4e792cfd7d3a7b29bd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for aliasdict 0.9.5
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.