Skip to main content

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:

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
  • IdentityWeakKeyDict

Metadata

Release files for identity-containers 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for identity-containers 1.1.0
File Size Uploaded
identity_containers-1.1.0.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for identity-containers 1.1.0
File Interpreter ABI Platform
identity_containers-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / identity_containers-1.1.0.tar.gz

Download URL identity_containers-1.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8e7c5aabfa4f46409e88bb0dd598a43d3ee8e268864cd7ae735f86b15043be62
BLAKE2b-256 checksum
How to use checksums
dfd4a00dc75b7198b37a015f1c332bd7788db6b3f6555f64d22d4e12c54ad9ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release files / identity_containers-1.1.0-py3-none-any.whl

Download URL identity_containers-1.1.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9af2208e10224cf41be4d136e765fbb1b561d78f4f58b520743cedd31f45d4f0
BLAKE2b-256 checksum
How to use checksums
88323cad0e57b58a35f6fb275a105fe8fd8c0b510d848bbf87c40b76a8ddee44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.32.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page