Package frozenmap provide FrozenDict and FrozenMap class
Project description
frozenmap is MIT Licensed python library. It implements FrozenDict and FrozenMap classes.
FrozenMap instance is an immutable mapping object wrapped around a mutable mapping object.
FrozenDict instance is an immutable mapping object wrapped around a dict object.
This library actually is a “proof of concept” for the problem of fast “immutable dict” problem.
Main repository for frozenmap is on bitbucket.
Quick start:
First load inventory:
>>> from frozenmap import FrozenDict
Simple example:
>>> fd = FrozenDict(a=1,b=2,c=3) >>> print(fp) FrozenDict({'a':1, 'b':2, 'c':3}) >>> fd['a'] 1 >>> fd['a'] = 10 ........ TypeError: 'frozenmap.frozendict.FrozenDict' object does not support item assignment >>> del fd['a'] ......... TypeError: 'frozenmap.frozendict.FrozenDict' object does not support item deletion >>> fd.pop('a') ......... AttributeError: 'frozenmap.frozendict.FrozenDict' object has no attribute 'pop'
Changes:
0.5 Initial version
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
frozenmap-0.5.1.tar.gz
(95.9 kB
view hashes)
Built Distributions
Close
Hashes for frozenmap-0.5.1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b0aa179b1693096c8fb904004c9d9c12e0cece849f1db834ecb42c442189c85 |
|
MD5 | 936655b9643b607388a958bdb7580189 |
|
BLAKE2b-256 | a3fbc422f89f4d072f2e74288113595f0e3eeb0426fc679607706abf2d4a7b8a |
Close
Hashes for frozenmap-0.5.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40fe5e40a8a9981bee84b24f81f7323aeeab5d727d4997fa9935b77e80d0abc |
|
MD5 | ed403d7412dcbf7b20e5e68bf293b624 |
|
BLAKE2b-256 | 786d429a7a9d99c947da0b8f867d7e03e3d9fcdb7a33cdb0be79da420233fadf |
Close
Hashes for frozenmap-0.5.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ae686bc4c1b890e8c2910a9808fd1410b1489642fd5adb17a264c0e27d4b068 |
|
MD5 | 0fd885b6205a63adb1c92b4457849cab |
|
BLAKE2b-256 | 70d9ae65d467d2d27905e0ee271d0773480a9ceaa17d70d15a46c3108c55ecdc |
Close
Hashes for frozenmap-0.5.1-cp27-cp27m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93ef13980cb1eb9170ce1c0f324eac64d057f1957c7fb7a0cf3be9c5399a7f32 |
|
MD5 | 4fd27984d70543b5fd62eb35312c3e00 |
|
BLAKE2b-256 | 9cc9d103fdc48cf0f54b3d0dd65ee2327102eea7bfa78cd91b5ed648eff90833 |