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.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for str2bool3-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fc66384f3c55a1fa612a1a3696c159607479e369408fe4785d355f63f303db6 |
|
MD5 | 002ccc2a0b443b175381a1957636ab6a |
|
BLAKE2b-256 | 5b47d79822f35834cc0f8b9412563ccafd38cc9f846d521413fada2741b988cb |