Metadata-Version: 2.3
Name: identity-containers
Version: 1.0.0
Summary: Dicts and Sets that hash items based on identity instead of value
Author: Paul Pinterits
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: typing-extensions
Requires-Dist: pytest ; extra == "dev"
Requires-Dist: pytest-cov ; extra == "dev"
Provides-Extra: dev

## Introduction

This module implements dicts and sets that compare items based on identity rather than value. This
allows them to store unhashable objects.

Usage example:

```python
from identity_containers import IdentitySet

foo = []
bar = []

id_set = IdentitySet([foo])

print(foo in id_set)  # True
print(bar in id_set)  # False
```

The following classes exist:

-   `IdentitySet`
-   `IdentityDict`
-   `IdentityDefaultDict`

