boolean

Converts string to their equivalent boolean value


Keywords
boolean, true, false, yes, no
License
CC0-1.0
Install
pip install boolean==1.1.0

Documentation

Boolean

https://travis-ci.org/scisco/boolean.svg?branch=develop 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