Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
frozenmap is MIT Licensed <http://opensource.org/licenses/MIT>
_ python library.
It implements frozendict
type (in C) and FrozenDict
, FrozenMap
classes (in Cython).
frozendict
is read-only and hashable dictionary (C based).FrozenMap
is read-only mapping object wrapped around a mutable mapping object (Cython based).FrozenDict
is read-only and hashable dictionary (Cython based).This library actually is an attempt to proof the concept of fast frozendict (C/Cython based).
Main repository for frozenmap
is on bitbucket <https://bitbucket.org/intellimath/frozenmap>
_.
First load inventory::
>>> from frozenmap import frozendict, FrozenDict
Simple example::
>>> fd = frozendict(a=1,b=2,c=3)
>>> fd
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'
>>> 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'
** 0.6 **
frozendict
.0.5 Initial version
FAQs
Package frozenmap provide frozendict (C based) and frozenmap (Cython based)
We found that frozenmap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.