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!

Utility functions to convert strings to Python types

Project Description

Utility functions to convert strings to Python types. Currently implements convert_bool(), which will convert truthy strings to True and falsey strings to False:

` >>> from conversion import convert_bool >>> convert_bool('yes') True >>> convert_bool('no') False `

When the function does not find the string can be converted, ValueError is raised:

` >>> convert_bool('yup') ValueError: invalid truth value 'yup' `

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
conversion-0.0.3.tar.gz (1.1 kB) Copy SHA256 Checksum SHA256 Source Jun 28, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting