Metadata-Version: 2.3
Name: python-strtobool
Version: 1.0.3
Summary: str_to_bool function for Python
Project-URL: homepage, https://github.com/sassanh/python-strtobool/
Project-URL: repository, https://github.com/sassanh/python-strtobool/
Project-URL: documentation, https://github.com/sassanh/python-strtobool/
Project-URL: changelog, https://github.com/sassanh/python-strtobool/blob/main/CHANGELOG.md
Author-email: Sassan Haradji <me@sassanh.com>
Maintainer-email: Sassan Haradji <me@sassanh.com>
License: Apache-2.0
Keywords: str2bool,str_to_bool,strtobool
Requires-Python: >=3.0
Description-Content-Type: text/markdown

# 🐍 Python `strtobool`

Convert string to boolean value using `str_to_bool` function.

## 🛠 Usage

```python
from str_to_bool 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.
