str2bool
Convert string to boolean
Decision gist · record as of 2026-08-14
No. While the package is permissively licensed and has no known vulnerabilities, its high install friction, dormant maintenance status (last release 2017-12-25), and lack of active development make it a poor choice for new projects. Only consider it if you're maintaining legacy code that already depends on it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation friction is high due to distribution as a .zip file.
- The package is dormant—last release was 2017-12-25 and last commit 2024-07-02—so expect no active maintenance or updates.
License · maintenance · safety
permissive license (permissive) — Licensed under BSD (permissive), which allows commercial and private use with minimal restrictions.
last release 2017-12-25 (3154 days) · last repo commit 2024-07-02 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 243,415 downloads/mo, #8,797 on PyPI
Alternatives
Verify before relying
pip install str2bool
from str2bool import str2bool
print(str2bool('Yes')) # True
print(str2bool('no')) # False- Whether the high install friction (.zip distribution) reflects current PyPI hosting or a historical artifact
- Whether Python 2.7 support claim (per classifiers) is actually functional or outdated
What it is and what it does
str2bool is a minimal utility that parses common string representations of truth values into Python booleans. It recognizes 'yes', 'true', 'y', 't', '1' as True and 'no', 'false', 'n', 'f', '0' as False, treating input case-insensitively. The package has no runtime dependencies and is designed as a drop-in function for simple string-to-bool conversion tasks.
The package is production-stable but dormant—its last release was 2017-12-25 and it receives no active development. It remains functional for its narrow use case but will not receive bug fixes or feature updates. The high install friction and lack of recent maintenance make it a legacy choice.
Use it for
- Parse command-line arguments or config file values that come in as strings like 'yes'/'no' or 'true'/'false'
- Convert user input from web forms or APIs into boolean flags without writing custom parsing logic
- Handle legacy data imports where boolean values are stored as string representations
- Quick boolean coercion in scripts where case-insensitive parsing is needed
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
While the package is permissively licensed and has no known vulnerabilities, its high install friction, dormant maintenance status (last release 2017-12-25), and lack of active development make it a poor choice for new projects. Only consider it if you're maintaining legacy code that already depends on it.
Install
str2bool on PyPI
Before you install
Installation friction is high due to distribution as a .zip file. The package is dormant—last release was 2017-12-25 and last commit 2024-07-02—so expect no active maintenance or updates.
License in practice
Licensed under BSD (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install str2bool
from str2bool import str2bool
print(str2bool('Yes')) # True
print(str2bool('no')) # False
Verify before relying
- Whether the high install friction (.zip distribution) reflects current PyPI hosting or a historical artifact
- Whether Python 2.7 support claim (per classifiers) is actually functional or outdated
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Dormant 3,154 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 243,415 / month, #8,797 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.6Topic :: Utilities |
Evidence: str2bool-1.1.zip
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “string to boolean conversion”
- str2boolConverts string representations like 'yes', 'true', '1', 'no',…
- skia-pathopsPython bindings for Google Skia's Path Ops module, enabling boolean…
- bitarrayProvides an efficient C-backed array type for storing and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also py2opsin · boolean.py · kanjize · pycosat · sqlalchemy-hana · esp-bool-parser · indic-numtowords · selfies · textsearch