Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

simple converter from ``str`` to ``bool``

Project Description

asbool is simple converter from str to bool.


use pip to install asbool.

pip install asbool


You can use asbool.asbool function simply.

>>> from asbool import asbool
>>> asbool('TRUE')

Or use AsBoolConverter instance with customized values.

>>> from asbool.converter import AsBoolConverter
>>> converter = AsBoolConverter(['t'], ['f'])
>>> converter('t')
>>> converter('f')
>>> converter('true')
Traceback (most recent call last):
raise ValueError(ss)
ValueError: true

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.3 kB) Copy SHA256 Hash SHA256
Wheel 3.5 Nov 19, 2015
(1.9 kB) Copy SHA256 Hash SHA256
Source None Nov 19, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers