Skip to main content

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


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)

Uploaded Source

Built Distribution

str2bool3-1.0.2-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page