Collection objects similar to those in stdlib by jaraco
Project description
Models and classes to supplement the stdlib ‘collections’ module.
See the docs, linked above, for descriptions and usage examples.
Highlights include:
RangeMap: A mapping that accepts a range of values for keys.
Projection: A subset over an existing mapping.
DictFilter: A different implementation of a projection.
KeyTransformingDict: Generalized mapping with keys transformed by a function.
FoldedCaseKeyedDict: A dict whose string keys are case-insensitive.
BijectiveMap: A map where keys map to values and values back to their keys.
ItemsAsAttributes: A mapping mix-in exposing items as attributes.
IdentityOverrideMap: A map whose keys map by default to themselves unless overridden.
FrozenDict: A hashable, immutable map.
Enumeration: An object whose keys are enumerated.
Everything: A container that contains all things.
Least, Greatest: Objects that are always less than or greater than any other.
pop_all: Return all items from the mutable sequence and remove them from that sequence.
DictStack: A stack of dicts, great for sharing scopes.
WeightedLookup: A specialized RangeMap for selecting an item by weights.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jaraco.collections-3.5.1.tar.gz
.
File metadata
- Download URL: jaraco.collections-3.5.1.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b04f00bd4b3c4fc4ba5fe1baf8042c0efd192b13e386830ea23fff77bb69dc88 |
|
MD5 | ef72a147d9190af7c3706cbe135e456b |
|
BLAKE2b-256 | f64bb9b09f98a1626599598addc333d6c5066f97b55b0a065eeb711bd1c21f71 |
File details
Details for the file jaraco.collections-3.5.1-py3-none-any.whl
.
File metadata
- Download URL: jaraco.collections-3.5.1-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef7c308d6d7cadfb16b32c7e414d628151ab02b57a5702b9d9a293148c035e70 |
|
MD5 | e9da489d2140bdeacb4d88559549cd73 |
|
BLAKE2b-256 | 25359619aebe83285e667bf32acca4d403d8160b23d4a072b030581c768d7b07 |