{"library":"str2bool","title":"str2bool","type":"library","description":"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.","language":"python","status":"maintenance","last_verified":"Thu Apr 16","install":{"commands":["pip install str2bool"],"cli":null},"imports":["from str2bool import str2bool"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/symonsoft/str2bool","docs":null,"changelog":null,"pypi":"https://pypi.org/project/str2bool/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from str2bool import str2bool\n\n# Example usage\nprint(f\"'Yes' -> {str2bool('Yes')}\")\nprint(f\"'no' -> {str2bool('no')}\")\nprint(f\"'1' -> {str2bool('1')}\")\nprint(f\"'FALSE' -> {str2bool('FALSE')}\")\nprint(f\"'invalid_string' -> {str2bool('invalid_string')}\") # Returns False by default for unrecognized strings","lang":"python","description":"Demonstrates importing the `str2bool` function and converting various string inputs. Unrecognized strings default to `False`.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}