Skip to content

pace-gene/str2bool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

str2bool

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%