Skip to content

symonsoft/str2bool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

str2bool v.1.1

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 str2bool

Examples

Here's a basic example:

>>> from str2bool import str2bool
>>> print(str2bool('Yes'))
True

License

BSD

About

Convert string to boolean.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages