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
Built Distribution
File details
Details for the file coveo_itertools-2.0.11.tar.gz
.
File metadata
- Download URL: coveo_itertools-2.0.11.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.9.18 Linux/5.15.0-1058-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cba010a3365a5c905ff23799f467efe15f8766745ca6a0a1ec3db2eb36b6df57 |
|
MD5 | b14f016d3cefa157f886cea1a3216817 |
|
BLAKE2b-256 | 15bfde533f32908d7cea582d8c28bd34285e79c14d64ee3aa79a7034694aca98 |
File details
Details for the file coveo_itertools-2.0.11-py3-none-any.whl
.
File metadata
- Download URL: coveo_itertools-2.0.11-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.18 Linux/5.15.0-1058-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb8a599c35d5b72ad5df60f2b31cad4bd67705720a2e4979878e28e069a8687 |
|
MD5 | 2a91f9cec7141188ae68c54152025978 |
|
BLAKE2b-256 | f1780cb2ad1d4a536ad4ad6741b6e55c0383a79d078553ce4af0ee82aa553124 |