{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities"}],"enrichment":{"capability":"Provides an immutable, hashable dictionary implementation with a dict-like API, supporting operations like set(), delete(), and merge via the | operator while guaranteeing immutability.","skillfed_tags":["immutable-data-structures","functional-programming"],"use_cases":["Use as dictionary keys or set members when you need hashable, immutable mappings for caching or memoization.","Freeze nested data structures (lists, dicts, sets, custom objects) into immutable equivalents with deepfreeze().","Define configuration or constant data that must not be accidentally modified during program execution.","Serialize and deserialize immutable data structures via pickle while preserving hashability and immutability guarantees.","Build functional-style code where data transformations return new frozendict instances rather than mutating state."],"what_it_does":"frozendict is an immutable dictionary that behaves like a standard Python dict but cannot be modified after creation. It supports hashing (when all values are hashable) and pickling, making it suitable for use as dictionary keys or in sets. The package provides both a frozendict class with a dict-compatible API minus mutation methods, plus a deepfreeze utility that recursively converts nested mutable structures into their immutable equivalents.\n\nThe implementation guarantees true immutability\u2014internal variables cannot be changed and are themselves immutable objects. It supports standard dict operations like get(), keys(), values(), items(), and fromkeys(), plus immutable variants like set() and delete() that return new frozendict instances. The | operator merges a frozendict with a regular dict, producing a new frozendict. An optional C extension is available for performance, but a pure Python fallback ensures broad compatibility.","worth_installing":"Yes. frozendict is actively maintained, has zero known vulnerabilities, imposes no runtime dependencies, and solves a genuine need for immutable, hashable dictionaries in Python. The LGPL v3 copyleft license is a consideration if you're building proprietary software, but poses no barrier to use in open-source or internal projects. Install it if you need immutable mappings for hashing, thread safety, or functional programming patterns."},"id":"frozendict","links":{"html":"https://skillfed.io/packages/frozendict","md":"https://skillfed.io/packages/frozendict.md","pypi":"https://pypi.org/project/frozendict/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-11","license_spdx":null,"license_treatment":"copyleft","name":"frozendict","python_support":"supports_current","summary":"A simple immutable dictionary"},"popularity":{"monthly_downloads":17608249,"position":1108,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.4.7"}
