Skip to content

ZivRonen/str2bool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%