Metadata-Version: 1.1
Name: frozenmap
Version: 0.6
Summary: Package frozenmap provide frozendict (C based) and frozenmap (Cython based)
Home-page: http://intellimath.bitbucket.org/frozenmap
Author: Zaur Shibzukhov
Author-email: szport@gmail.com
License: MIT License
Download-URL: https://bitbucket.org/intellimath/frozenmap
Description: =========
        frozenmap
        =========
        
        **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>`_.
        
        Quick start:
        ------------
        
        
        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'
           
        
        Changes:
        --------
        
        ** 0.6 **
        
        * Add C implementation for `frozendict`.
        * Add tests for frozendict type.
        
        **0.5** Initial version
        
        
Keywords: frozen mapping,immutable mapping,frozen dict,immutable dict
Platform: Linux
Platform: Mac OS X
Platform: Windows
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Python Modules
