Skip to main content

Converts string to their equivalent boolean value

Project description

https://travis-ci.org/scisco/boolean.svg?branch=develop https://badge.fury.io/py/boolean.svg License

Converts strings such as “true”, “True”, “y”, “n”, … to their equivalent Boolean value.

Installation

$ pip install boolean

Usage

>>> from boolean import boolean
>>> boolean('True')
True
>>> boolean('t')
True
>>> boolean('f')
False
>>> boolean('False')
False

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

boolean-1.1.0.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file boolean-1.1.0.tar.gz.

File metadata

  • Download URL: boolean-1.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for boolean-1.1.0.tar.gz
Algorithm Hash digest
SHA256 2556c3ada0b57a5fabf59fa83dec2cc3a2790da3564d89724d8658cd6909f246
MD5 7e8ea00afcc6972d26964f22087463f7
BLAKE2b-256 ed4940a19091b45d774cf7d1ce2dc8dd5ee894b51926881f4f3322d699f6ca4b

See more details on using hashes here.

Provenance

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