Skip to main content

Package frozentype provide some frozen python types (frozendict (C based) and frozenmap (Cython based))

Project description

frozentype is MIT Licensed python library. It implements some frozen python types: 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 frozentype is on bitbucket.

Quick start:

First load inventory:

>>> from frozentype 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: 'frozentype._frozendict.frozendict' object does not support item assignment
>>> del fd['a']
.........
TypeError: 'frozentype._frozendict.frozendict' object does not support item deletion
>>> fd.pop('a')
.........
AttributeError: 'frozentype._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: 'frozentype.frozendict.FrozenDict' object does not support item assignment
>>> del fd['a']
.........
TypeError: 'frozentype.frozendict.FrozenDict' object does not support item deletion
>>> fd.pop('a')
.........
AttributeError: 'frozentype.frozendict.FrozenDict' object has no attribute 'pop'

Changes:

** 0.6.0.1 ** (technical version to convince pypi to upload project with fixed title in README)

** 0.6 ** (migrate from project intellimath/frozenmap)

  • 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

frozentype-0.6.0.1.tar.gz (123.6 kB view details)

Uploaded Source

Built Distributions

frozentype-0.6.0.1-cp37-cp37m-win_amd64.whl (87.7 kB view details)

Uploaded CPython 3.7m Windows x86-64

frozentype-0.6.0.1-cp37-cp37m-win32.whl (74.3 kB view details)

Uploaded CPython 3.7m Windows x86

frozentype-0.6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (85.9 kB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

frozentype-0.6.0.1-cp36-cp36m-win_amd64.whl (87.9 kB view details)

Uploaded CPython 3.6m Windows x86-64

frozentype-0.6.0.1-cp36-cp36m-win32.whl (74.4 kB view details)

Uploaded CPython 3.6m Windows x86

frozentype-0.6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl (86.4 kB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

frozentype-0.6.0.1-cp35-cp35m-win_amd64.whl (86.9 kB view details)

Uploaded CPython 3.5m Windows x86-64

frozentype-0.6.0.1-cp35-cp35m-win32.whl (73.3 kB view details)

Uploaded CPython 3.5m Windows x86

frozentype-0.6.0.1-cp35-cp35m-macosx_10_6_intel.whl (160.1 kB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

frozentype-0.6.0.1-cp34-cp34m-win_amd64.whl (80.7 kB view details)

Uploaded CPython 3.4m Windows x86-64

frozentype-0.6.0.1-cp34-cp34m-win32.whl (70.3 kB view details)

Uploaded CPython 3.4m Windows x86

frozentype-0.6.0.1-cp34-cp34m-macosx_10_6_intel.whl (158.7 kB view details)

Uploaded CPython 3.4m macOS 10.6+ intel

frozentype-0.6.0.1-cp27-cp27m-win_amd64.whl (79.8 kB view details)

Uploaded CPython 2.7m Windows x86-64

frozentype-0.6.0.1-cp27-cp27m-win32.whl (69.9 kB view details)

Uploaded CPython 2.7m Windows x86

frozentype-0.6.0.1-cp27-cp27m-macosx_10_9_x86_64.whl (84.9 kB view details)

Uploaded CPython 2.7m macOS 10.9+ x86-64

File details

Details for the file frozentype-0.6.0.1.tar.gz.

File metadata

  • Download URL: frozentype-0.6.0.1.tar.gz
  • Upload date:
  • Size: 123.6 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 frozentype-0.6.0.1.tar.gz
Algorithm Hash digest
SHA256 58aedda8914116cfa4ff3ed0f664276df0ebee05d5e5d3949371a989cc8d8fe5
MD5 f367f5ecdf60bf2af5a6cb43856d73e9
BLAKE2b-256 d9c6f65f8cf7c04648b9542cca804e299d58ad4ad40daa08416051890f6419ce

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 87.7 kB
  • Tags: CPython 3.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 frozentype-0.6.0.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 19aec19115dbd79261dd743cfec3c4d6911e988d507b3eeed1d4ef1517aab56c
MD5 343b407b6d14ce1fa59c14de63cc992e
BLAKE2b-256 66f0c7f255f828acb19d371c3da3e2d6575a0b7bfd7a2389519367d355bdfa85

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp37-cp37m-win32.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 74.3 kB
  • Tags: CPython 3.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 frozentype-0.6.0.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 eb466c8cf9b598ec7c298dde55b6e7cf00551e00b483aa59a06f04e93dc53c80
MD5 9993035c24c35027c11f5c5a85258701
BLAKE2b-256 29b80c6d9b221b826382f42067d6b5db4861c37452f73656e2896a388403d5ef

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 85.9 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 frozentype-0.6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0719e57f9e252279f39fb019ffad8240a592b5c54106338e10b9736ef9d161b9
MD5 91d408c402a478788fc1447a81e6cf0f
BLAKE2b-256 5e37ee81354b48d0cac8079a612ed66c03a7075b427726af21b4e8deac292a3e

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 87.9 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 frozentype-0.6.0.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8bf7fd7a4fb17d9d69ceb3946ec515cb0f6414a196d76cab452a7ef3f296c882
MD5 584a12e51d211403ecc5bb8c0ac2bb38
BLAKE2b-256 798e16b31667e5877ea9a5e667810020e73243979756d76a3f86e2aaf345e7fc

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp36-cp36m-win32.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 74.4 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 frozentype-0.6.0.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 54a45a34f79e214c400c2401f647a0286a34d590a19ac0658e637c6af65a23d2
MD5 387b6945a474a26cd09d5fb3d0aebab2
BLAKE2b-256 5c926b116678215267c28ae1fd9acc11b5a34ab6b130ddb01cb104ece3ae574b

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 86.4 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 frozentype-0.6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e6da87038a908c5abe8c5e8f12382f49660f9cbf1d3be2f390d1b3fcf575ea07
MD5 c1ea2afc635d0b1cb7cb9ae384827241
BLAKE2b-256 458ab1c7f3b037e15f3581aa053042c937dec47381843884c6c809cc58beb1dc

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 86.9 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 frozentype-0.6.0.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 596a0aa8bc79e8db1aefdb7b91c78ef11d0468c5f3ea7454266929b56c0370d1
MD5 c6c0f2bf03bd4f9698830bff29da1528
BLAKE2b-256 63ae98a0290d504fe73b802e8e0e6dbff4ae11fd00e7af714917183acc5a5028

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp35-cp35m-win32.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 73.3 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 frozentype-0.6.0.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 3e5920af056c5e8b556963ebed2bbc7f0d71ae464af2820d304fb8666eecc227
MD5 cbab219c362488b29b4b45b38c6ba77d
BLAKE2b-256 39f267253a2ab7ccdc0580f9588600903df414b7b9f5938dfa0aad5eada2395d

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 160.1 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 frozentype-0.6.0.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 8fd56cdf7a02d800de2f8f3758c29f782b40247746d3dc21176427fec4534182
MD5 c854e77d77f36d797ebaba3c611e09c3
BLAKE2b-256 7b7aef755f9c3c15b1ff02580c6b8ca4f171c72058f382a187b5e47bf37749f9

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp34-cp34m-win_amd64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp34-cp34m-win_amd64.whl
  • Upload date:
  • Size: 80.7 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 frozentype-0.6.0.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 62f29efb8d492e810bef8c4a40f8a63f9b15e3eeea17a3585db4c1b421820be5
MD5 6731b58a2d90956962923651de58b41b
BLAKE2b-256 c9c89ee0912e8529642aad44195ef1ac97138ac58ddbe7fa704db73c2be696f0

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp34-cp34m-win32.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp34-cp34m-win32.whl
  • Upload date:
  • Size: 70.3 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 frozentype-0.6.0.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 67d0c5c6ebbe1ec23928743ff7ee70585f77c98669dad4ef347a5422076f5ed5
MD5 2c0e347d6e8c026e933aa2766131a40c
BLAKE2b-256 d19cb6e18e6f01fbd24d7aed19a19b6ed4491be75b6dc7ce912402a03a81e11f

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp34-cp34m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 158.7 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 frozentype-0.6.0.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 459555bc45bea1b2fd711998b538b1a1fb65472ed073ab51754a9becddede0f9
MD5 deb98d14951002b37d4aa0578177c513
BLAKE2b-256 67caa148f1eaa436ed0607c12badeab81302a2694b91af96c7e8b079e4f222c1

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp27-cp27m-win_amd64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp27-cp27m-win_amd64.whl
  • Upload date:
  • Size: 79.8 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 frozentype-0.6.0.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 6602fe437b85ef19b9c64483a701a9980a9fa6b2b5a3cf34e2d6c210b50767a1
MD5 299ad15c8bb1ac416572385fba320a41
BLAKE2b-256 4d54b7212a2c577ec2e31d09f7f46f3aac5de3c7efacce649d117fdb8930c0bd

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp27-cp27m-win32.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp27-cp27m-win32.whl
  • Upload date:
  • Size: 69.9 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 frozentype-0.6.0.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 a77c5a7309995d54c41b56db732a5497088ab787eb2433db6c8e2ed5b3ca8fe7
MD5 7bdc9122e870aabefa0edfd119f3e545
BLAKE2b-256 ac720a3ed6e87114dc71ab649e0778e76acf536a8b159b39840f1b5cadc7bf70

See more details on using hashes here.

File details

Details for the file frozentype-0.6.0.1-cp27-cp27m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: frozentype-0.6.0.1-cp27-cp27m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 84.9 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 frozentype-0.6.0.1-cp27-cp27m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6af79018a4bce4ca3c0432854a8bbdec221afe28c34966b426b4d0f79ed6f113
MD5 520abbbe12424f048ab5c05f51a9d190
BLAKE2b-256 054cd786d6081aa1eb5bd63efcdd3b4e79e0f99ab18c9efa6430e577d299b2a8

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