Collection-related helpers.
Project description
coveo-itertools
Another spin on iteration goodness.
dict lookup
A one-liner function to retrieve a value from a dictionary:
from typing import Dict, Any
from coveo_itertools.lookups import dict_lookup
example: Dict[str, Any] = {'nested': {'key': {'lookup': True}}}
assert dict_lookup(example, 'nested', 'key', 'lookup') == True
assert dict_lookup(example, 'not', 'there', default=None) is None
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
coveo_itertools-3.0.tar.gz
(1.6 kB
view details)
Built Distribution
File details
Details for the file coveo_itertools-3.0.tar.gz
.
File metadata
- Download URL: coveo_itertools-3.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.22 Linux/6.8.0-1027-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2da8d8f12d3c413df94ed646c5162829807c793e244e37dec7647264e2e92231
|
|
MD5 |
27ca0968a532c881ac253b768ff6cd69
|
|
BLAKE2b-256 |
eb3d06de70fe1a4837ea25c636d8571d8c0ea597cfd9c6a5aead6bef6c550e7f
|
File details
Details for the file coveo_itertools-3.0-py3-none-any.whl
.
File metadata
- Download URL: coveo_itertools-3.0-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.22 Linux/6.8.0-1027-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2f3fc2b6bd9047036fbbb096643a308ef7818d04bab68a670c7deb80ae26cef4
|
|
MD5 |
2918c0d21afdcd5049b98e0f8a4a644c
|
|
BLAKE2b-256 |
a07be605c6fc68dcd50973be4349075d65fd3984fe74967886b8f07b7ad35a6e
|