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.0.0.tar.gz (1.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for boolean-1.0.0.tar.gz
Algorithm Hash digest
SHA256 20be1cca36f9d4f531ad07c4bfd725265c221c9fb3a639f62d88dc32128ffc6e
MD5 7ad2f48618a76cf283ae594b06cf976a
BLAKE2b-256 a2bcd69aed65a6d8fa8ee7d21eac8bedf6a8a3fd0a04415e594795b2824e87a3

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