Metadata-Version: 2.1
Name: python-strtobool
Version: 1.0.0
Summary: str_to_bool function for Python
Home-page: https://github.com/sassanh/python-redux/
License: Apache-2.0
Keywords: str_to_bool,strtobool,str2bool
Author: Sassan Haradji
Author-email: me@sassanh.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Project-URL: Repository, https://github.com/sassanh/python-redux/
Description-Content-Type: text/markdown

# 🐍 Python `strtobool`

Convert string to boolean value using `str_to_bool` function.

## 🛠 Usage

```python
from strtobool import str_to_bool

# Convert string to boolean value
value = str_to_bool('true')
```

## 📝 Supported values

All values are case-insensitive. Any value not listed below will raise a `ValueError`.

### True values

- `true`
- `t`
- `yes`
- `y`
- `on`
- `1`

### False values

- `false`
- `f`
- `no`
- `n`
- `off`
- `0`

## 📦 Installation

### Pip

```bash
pip install python-strtobool
```

### Poetry

```bash
poetry add python-strtobool
```

## 📜 License

This project is released under the Apache-2.0 License. See the [LICENSE](./LICENSE)
file for more details.

