Skip to main content

Converts string to their equivalent boolean value

Project description

https://travis-ci.org/scisco/boolean.svg?branch=develop https://badge.fury.io/py/boolean.svg License

Converts strings such as “true”, “True”, “y”, “n”, … to their equivalent Boolean value.

Installation

$ pip install boolean

Usage

>>> from boolean import boolean
>>> boolean('True')
True
>>> boolean('t')
True
>>> boolean('f')
False
>>> boolean('False')
False

Supported by

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