{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/10"}],"enrichment":{"capability":"Provides an immutable dictionary class that wraps Python's built-in dict, preventing in-place modifications while remaining hashable and comparable to regular dicts.","skillfed_tags":["immutable-data-structures","hashable-collections"],"use_cases":["Use as dictionary keys in sets or as dict keys where regular dicts cannot be used due to mutability.","Share configuration or lookup tables across functions without risk of accidental modification.","Cache immutable snapshots of data where hash stability and equality checks matter.","Bulk-update immutable structures efficiently via mutate()/finish() when creating many variants.","Replace frozendict or other immutable dict implementations when performance is a concern."],"what_it_does":"constantdict is a lightweight immutable dictionary implementation that sits on top of Python's built-in dict. It prevents accidental in-place modifications by raising AttributeError on attempts to mutate (like setting items, popping, or clearing), while remaining fully hashable with cached hashes and comparable to regular dicts. The class is designed to be faster than some alternative immutable dictionary libraries.\n\nYou use it when you need a dict-like object that can serve as a dictionary key, be safely shared across code without fear of mutation, or benefit from cached hashing. It supports both functional-style operations (returning new immutable copies via setdefault, update, delete) and bulk mutation via a mutate()/finish() pattern for performance when making multiple changes at once.","worth_installing":"Yes, if you need an immutable, hashable dict and want a lightweight, permissively licensed option. Install with caution given aging maintenance (last commit 2025-07-21, no recent releases), but the package is stable, has no known vulnerabilities, and low install friction. Best for projects where immutable dicts are a core requirement rather than an occasional convenience."},"id":"constantdict","links":{"html":"https://skillfed.io/packages/constantdict","md":"https://skillfed.io/packages/constantdict.md","pypi":"https://pypi.org/project/constantdict/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-07-21","license_spdx":null,"license_treatment":"permissive","name":"constantdict","python_support":"supports_current","summary":"An immutable dict class."},"popularity":{"monthly_downloads":74056,"position":14882,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2025.3"}
