
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
adaendra-immutable-dict
Advanced tools
This library contains the ImmutableDict, a Python dictionary which can't be updated.
pip install adaendra-immutable-dict
from adaendra_immutable_dict.AdaendraImmutableDict import AdaendraImmutableDict
from adaendra_immutable_dict.AdaendraImmutableDict import AdaendraImmutableDict
# Empty Immutable Dict
immutable_dict = AdaendraImmutableDict({})
# Non empty Immutable Dict
immutable_dict = AdaendraImmutableDict({"hello": "world"})
# Get a value
immutable_dict["hello"]
#> world
# Copy dict
immutable_dict_copy = immutable_dict.copy()
# Create an immutable dict from "fromkeys" method
immutable_dict = AdaendraImmutableDict.fromkeys(["a", "b"], "1")
This project is based on Marco Sulla's project: frozen-dict.
FAQs
An immutable dict
We found that adaendra-immutable-dict demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.