Skip to main content

find_where

find_where is a Python package that provides a function to find values in dictionaries where a specified key matches a given value, similar to filtering in SQL.

Installation

You can install find_where using pip:

pip install find_where

Usage

from find_where import find_where

# Sample data

data = [
    {"name": "Alice", "age": 30},
    {"name": "Bob", "age": 25},
    {"name": "Charlie", "age": 35}
]

# Find the value for the key "name" where the age is 25

result = find_where(data, "name", age=25)
print(result)  # Output: "Bob"

Metadata

Release files for find-where 1.0.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 find-where 1.0.0
File Size Uploaded
find_where-1.0.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for find-where 1.0.0
File Interpreter ABI Platform
find_where-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / find_where-1.0.0.tar.gz

Download URL find_where-1.0.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
76d8255368db0190a36ace7fd3d966b8e3d1f5eb51d8a9ccac0cea5bab706d5a
BLAKE2b-256 checksum
How to use checksums
642983d686d9131f35087fbb19cb788620f0366027b0f2ca9327c6a145c03735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / find_where-1.0.0-py3-none-any.whl

Download URL find_where-1.0.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f06d724e8368b69d0d60d70845da52b90175edaaa0f7ce5cb912a2ee5bea0e43
BLAKE2b-256 checksum
How to use checksums
6128c21be0a0d553f67bfed5d1bb6bdca1136a7dd7d5778bd878f3644a3b68d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.0 This release

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