first: Return the First True Value from an Iterable

JSON →
library 2.0.2 ·python
verified May 22, 2026

first is an MIT-licensed Python package with a single, simple function that efficiently returns the first 'truthy' value from an iterable, or `None` if no such value exists. It offers optional `key` function customization for complex truthiness evaluation and a `default` parameter for specifying a fallback value. Currently at version 2.0.2, the library maintains a stable, infrequent release cadence focused on core functionality and compatibility.

total hits 12
actors 6 distinct systems
last hit 5d ago Script
GPTBot
2
Script
2
Search engines
2
Humans
2

top countries 🇺🇸 United States · 🇫🇷 France · 🇸🇬 Singapore · 🇩🇪 Germany · 🇨🇦 Canada