str2bool

JSON →
library 1.1 ·python maintenance
verified May 26, 2026

This library provides a simple function to convert string representations to boolean values. It explicitly recognizes 'yes', 'true', 'y', 't', '1' as True, and 'no', 'false', 'n', 'f', '0' as False, with case-insensitivity. This version (1.1) was released in 2017 and is currently in maintenance mode with no active development.

total hits 13
actors 4 distinct systems
last hit 4d ago AhrefsBot
GPTBot
5
Script
1
ClaudeBot
1
Humans
2

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