immutabledict
An immutable wrapper around dictionaries. immutabledict implements the complete mapping interface and can be used as a drop-in replacement for dictionaries where immutability is desired.
It's a fork of slezica's frozendict. This library is a pure Python, MIT-licensed alternative to the new LGPL-3.0 licensed frozendict.
Installation
Official release in on pypi as immutabledict.
Community-maintained releases are available:
- On conda-forge as
immutabledict - On various package repositories
Example
from immutabledict import immutabledict
my_item = immutabledict({"a": "value", "b": "other_value"})
print(my_item["a"]) # Print "value"
Differences with the old original frozendict package
- Dropped support of EOL Python versions (older versions of the library may support older Python versions)
- Fixed
collections.Mappingdeprecation warning - Typing
- PEP 584 union operators
- Keep the same signature for
copy()asdict(starting with immutabledict 3.0.0), don't accept extra keyword arguments. - Added
set,deleteanddiscardmethods
Donations
If you wish to support this library, donations are possible here.
Metadata
Release files for immutabledict 4.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| immutabledict-4.3.1.tar.gz | 7.8 kB | With provenance | Details for immutabledict-4.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| immutabledict-4.3.1-py3-none-any.whl | Python 3 | none | any | Details for immutabledict-4.3.1-py3-none-any.whl |
Total release size: 12.8 kB
Release files / immutabledict-4.3.1.tar.gz
| Download URL | immutabledict-4.3.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f844a669106cfdc73f47b1a9da003782fb17dc955a54c80972e0d93d1c63c514
|
|
BLAKE2b-256 checksum How to use checksums |
1de6718471048fea0366c3e3d1df3acfd914ca66d571cdffcf6d37bbcd725708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logRelease files / immutabledict-4.3.1-py3-none-any.whl
| Download URL | immutabledict-4.3.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c9facdc0ff30fdb8e35bd16532026cac472a549e182c94fa201b51b25e4bf7bf
|
|
BLAKE2b-256 checksum How to use checksums |
a3cef9018bf69ae91b273b6391a095e7c93fa5e1617f25b6ba81ad4b20c9df10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logSecurity for immutabledict 4.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for immutabledict-4.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 15, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.