Skip to main content

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


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-4.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coveo_itertools-4.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file coveo_itertools-4.0.tar.gz.

File metadata

  • Download URL: coveo_itertools-4.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coveo_itertools-4.0.tar.gz
Algorithm Hash digest
SHA256 4354557776265a5e7b7d8d0ef660aa1b2ac0958142735373ce9bb6564ae0a9cc
MD5 27406f6eca33634ef5143e13f3eb50be
BLAKE2b-256 d764ccb23db99d9b76b8845b887c738000455402aa7267794ee76836f93e317f

See more details on using hashes here.

Provenance

The following attestation bundles were made for coveo_itertools-4.0.tar.gz:

Publisher: coveo-itertools.yml on coveooss/coveo-python-oss

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coveo_itertools-4.0-py3-none-any.whl.

File metadata

  • Download URL: coveo_itertools-4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coveo_itertools-4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6bd511e4625855048f0c8d108ae30516e938d5c312b516e71965ed33cb5923b
MD5 acb6b03a54366c00fc56a4885b6b8d66
BLAKE2b-256 bdc169aa27d2a708692ab034b7d916cfa83d754f4b65728adfdd4d928fd01bb0

See more details on using hashes here.

Provenance

The following attestation bundles were made for coveo_itertools-4.0-py3-none-any.whl:

Publisher: coveo-itertools.yml on coveooss/coveo-python-oss

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page