Convert string to boolean (Forked from SymonSoft/str2bool)
Project description
str2bool3 v1.0.0
About
Convert string to boolean. Library recognizes "yes", "true", "y", "t", "1" as True, and "no", "false", "n", "f", "0" as False. Case insensitive.
Installation
$ pip install str2bool3
Examples
Here's a basic example:
>>> from str2bool3 import str2bool
>>> print(str2bool('Yes'))
True
License
BSD
forked from symonsoft/str2bool
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
str2bool3-1.0.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for str2bool3-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18d3fac572fc7372cc14ef0b7d39c6c8fb9d5f3c23a8666d99e4c692e2782334 |
|
MD5 | 0a7b0279ab2b82f7a3760a1a85a1af05 |
|
BLAKE2b-256 | 4971c1b426280347d0b10dec4c4275755c319fedf6c92324d12ae0d730102db3 |