Skip to main content

Package frozenmap provide frozendict (C based) and frozenmap (Cython based)

Project description

frozenmap is MIT Licensed 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.

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

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.6.tar.gz (119.1 kB view details)

Uploaded Source

Built Distributions

frozenmap-0.6-cp37-cp37m-macosx_10_9_x86_64.whl (81.4 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

frozenmap-0.6-cp36-cp36m-win_amd64.whl (87.7 kB view details)

Uploaded CPython 3.6m Windows x86-64

frozenmap-0.6-cp36-cp36m-win32.whl (74.3 kB view details)

Uploaded CPython 3.6m Windows x86

frozenmap-0.6-cp36-cp36m-macosx_10_9_x86_64.whl (82.1 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

frozenmap-0.6-cp35-cp35m-win_amd64.whl (86.8 kB view details)

Uploaded CPython 3.5m Windows x86-64

frozenmap-0.6-cp35-cp35m-win32.whl (73.1 kB view details)

Uploaded CPython 3.5m Windows x86

frozenmap-0.6-cp35-cp35m-macosx_10_6_intel.whl (153.8 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

frozenmap-0.6-cp34-cp34m-win_amd64.whl (80.5 kB view details)

Uploaded CPython 3.4m Windows x86-64

frozenmap-0.6-cp34-cp34m-win32.whl (70.1 kB view details)

Uploaded CPython 3.4m Windows x86

frozenmap-0.6-cp34-cp34m-macosx_10_6_intel.whl (154.6 kB view details)

Uploaded CPython 3.4m macOS 10.6+ intel

frozenmap-0.6-cp27-cp27m-win_amd64.whl (79.6 kB view details)

Uploaded CPython 2.7m Windows x86-64

frozenmap-0.6-cp27-cp27m-win32.whl (69.8 kB view details)

Uploaded CPython 2.7m Windows x86

frozenmap-0.6-cp27-cp27m-macosx_10_9_x86_64.whl (82.4 kB view details)

Uploaded CPython 2.7m macOS 10.9+ x86-64

File details

Details for the file frozenmap-0.6.tar.gz.

File metadata

  • Download URL: frozenmap-0.6.tar.gz
  • Upload date:
  • Size: 119.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6.tar.gz
Algorithm Hash digest
SHA256 05d50efc2ab7b7bf7cd399e30f17f309b7400d92581f3485b2ad99923c32d47a
MD5 1b35f9c750921417b7b82dd929ff2f25
BLAKE2b-256 ae53df5465069214ba8a4916b8a0a9654037de0705c50aafe0db96b0fcec7b16

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: frozenmap-0.6-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 81.4 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2fb6d84179a7bae1eadbbbee160de5c0fa0c82c4eba95a2939bff6893e888c4d
MD5 474d44a05d02d13840e3332c330f40be
BLAKE2b-256 3e2a456c80b99f433260578638fbfaa01b9fc10daa9d6caece2ce55cf77410d1

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: frozenmap-0.6-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 87.7 kB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 1b30a5fd8bd8b1cfce0b3c5c87beef6b71949627317bae1a7040b0339377688b
MD5 0746a36253c80cf26e08ca0fc5d049fb
BLAKE2b-256 daea38313615ecd3baa643a3c530ad44ef040235044b92672292735052c50ec4

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp36-cp36m-win32.whl.

File metadata

  • Download URL: frozenmap-0.6-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 74.3 kB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 2498fedbbd1444a130a2bc6683871cd8e050ce29104828da8516ac9119f2f0da
MD5 2d3ba65bdee1bd461f65dc2455fda943
BLAKE2b-256 dc2fce0407dac26a0c52bb2d59b36b6f20bf0e6e10d53a323eff1b34478e402d

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: frozenmap-0.6-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 82.1 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 94db10b43cc11740f0e01eb6aba9c24e88658b27336d7180e78173bd44349ab1
MD5 b1ed2b6712f8cdc98bdc3680e70c412b
BLAKE2b-256 85cfa2a68c8d0041d79cd612ad14eca91f9b9c64c32655b46ae937f08d4b40e9

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: frozenmap-0.6-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 86.8 kB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 8bd55fde7e0c15490fa1c58096a52f7dc8bcea23312fdf8325467ef7d5f8993b
MD5 89274da4e4c9624ea46ad01031394a1c
BLAKE2b-256 6220286f8f4f74cb692fe704be13341758cda3c911659c4751e1714e08ecfbd8

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp35-cp35m-win32.whl.

File metadata

  • Download URL: frozenmap-0.6-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 73.1 kB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 13f975c5c31614bedb397681efaa69a2c5587d5928f118a6b9f1bb8a58549215
MD5 879b375200b81c2af02d3b5d2167d26e
BLAKE2b-256 49c3b8ea6e0a979687c384610ec2d503723c835da2bade943f2b787e79968d6a

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: frozenmap-0.6-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 153.8 kB
  • Tags: CPython 3.5m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 cd98521f029a6fe88fdbb08cf077bed3f133d826a6bc47f4d93d5caeb5960901
MD5 a4f4375010474aa3f7e44d917f3eb19c
BLAKE2b-256 1080406e61e3dc12ba0a38154a8ba8ab557e0b870ef6762dc0971ef183b83a94

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp34-cp34m-win_amd64.whl.

File metadata

  • Download URL: frozenmap-0.6-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 80.5 kB
  • Tags: CPython 3.4m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 c87b6064343c45960d0702de6aaeeae825d38bc1c64cc8c46f9d262aaf64c7de
MD5 e26c9988cf2135e7f2773d1ab6aed29b
BLAKE2b-256 6449c401b5fc239dbe09bf3853cec29a2aaf1402ca4bca2e244a68d59b3b9bf3

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp34-cp34m-win32.whl.

File metadata

  • Download URL: frozenmap-0.6-cp34-cp34m-win32.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: CPython 3.4m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 8e28fd262f90e2373bd9f4aa6cb13fc1c2f661ac94951dda5fb15cb4c0dcb7b5
MD5 067140194d8231953cda9d1d017ae959
BLAKE2b-256 4e82f4a3fa5978bed31a2d554183c50e6680a8a432339e1149fdc0342e74522a

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

  • Download URL: frozenmap-0.6-cp34-cp34m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 154.6 kB
  • Tags: CPython 3.4m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 179719a7803c32b3fd29b00e898456f42d3bde6d95123217064796570a7f90c7
MD5 9ba9bc86efbfb8b3af10bd1ac44c4ef3
BLAKE2b-256 8f88e8b8752964291a538f28fde0973d8d5e8bf9d0f77bc491e77c23743fa8d5

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: frozenmap-0.6-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 79.6 kB
  • Tags: CPython 2.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 b5001446a8719632f9fb7aa340a2df4acc356a57717be33bae7e9d0d247b2edf
MD5 7946b90e4380b7a2c4f5d8308cea88b9
BLAKE2b-256 6d0d5be9f8e4d9a50887d14928f5c04f2266529ce5d2a1ecf9bcdaee4d0b1388

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp27-cp27m-win32.whl.

File metadata

  • Download URL: frozenmap-0.6-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 69.8 kB
  • Tags: CPython 2.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 6608b7ed4d3065d702bfc651617920716e372d15a205ef2f1460b6260e8fe595
MD5 87537f3897517f8b799acf39532a5f0f
BLAKE2b-256 61188276ebc0efb8ca57fff34eafcdde600dae7ae222d8c8a6e788d5519816ee

See more details on using hashes here.

File details

Details for the file frozenmap-0.6-cp27-cp27m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: frozenmap-0.6-cp27-cp27m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 82.4 kB
  • Tags: CPython 2.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for frozenmap-0.6-cp27-cp27m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 851c0b102cc59d0902507688ae81506ddfbc2f4039719df0043e514c7c800e56
MD5 0c01f68a4df424c9810ff6dd7874a3dc
BLAKE2b-256 b4a1440dcd3fed19e2166592780ed0d43127a1eeb4321cbdc16f9ed064259b0e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page