python-strtobool


Namepython-strtobool JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/sassanh/python-strtobool/
Summarystr_to_bool function for Python
upload_time2024-06-28 10:30:44
maintainerNone
docs_urlNone
authorSassan Haradji
requires_python<4.0,>=3.9
licenseApache-2.0
keywords str_to_bool strtobool str2bool
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🐍 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.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sassanh/python-strtobool/",
    "name": "python-strtobool",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "str_to_bool, strtobool, str2bool",
    "author": "Sassan Haradji",
    "author_email": "me@sassanh.com",
    "download_url": "https://files.pythonhosted.org/packages/3c/88/e84989e85aca194c9bcbf053985590376196a3d739b0afa8d4decac76875/python_strtobool-1.0.2.tar.gz",
    "platform": null,
    "description": "# \ud83d\udc0d Python `strtobool`\n\nConvert string to boolean value using `str_to_bool` function.\n\n## \ud83d\udee0 Usage\n\n```python\nfrom str_to_bool import str_to_bool\n\n# Convert string to boolean value\nvalue = str_to_bool('true')\n```\n\n## \ud83d\udcdd Supported values\n\nAll values are case-insensitive. Any value not listed below will raise a `ValueError`.\n\n### True values\n\n- `true`\n- `t`\n- `yes`\n- `y`\n- `on`\n- `1`\n\n### False values\n\n- `false`\n- `f`\n- `no`\n- `n`\n- `off`\n- `0`\n\n## \ud83d\udce6 Installation\n\n### Pip\n\n```bash\npip install python-strtobool\n```\n\n### Poetry\n\n```bash\npoetry add python-strtobool\n```\n\n## \ud83d\udcdc License\n\nThis project is released under the Apache-2.0 License. See the [LICENSE](./LICENSE)\nfile for more details.\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "str_to_bool function for Python",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/sassanh/python-strtobool/",
        "Repository": "https://github.com/sassanh/python-strtobool/"
    },
    "split_keywords": [
        "str_to_bool",
        " strtobool",
        " str2bool"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9151f2d9ea45c25440fad0937001395132a3303cef973c2c85143114910d4377",
                "md5": "3ae63fcff50944c563f697fa5316c9ac",
                "sha256": "107d93760078a7b7eee91b455077fd6123fd94e6474815dfe306854cdfa47d70"
            },
            "downloads": -1,
            "filename": "python_strtobool-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3ae63fcff50944c563f697fa5316c9ac",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 6010,
            "upload_time": "2024-06-28T10:30:43",
            "upload_time_iso_8601": "2024-06-28T10:30:43.497601Z",
            "url": "https://files.pythonhosted.org/packages/91/51/f2d9ea45c25440fad0937001395132a3303cef973c2c85143114910d4377/python_strtobool-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c88e84989e85aca194c9bcbf053985590376196a3d739b0afa8d4decac76875",
                "md5": "ea9c03ec37699dce213168c8afa0347a",
                "sha256": "0c72ed5391e2aeef11bcbe754b96ed8770066000ea7ef0c2d33555c4538c6139"
            },
            "downloads": -1,
            "filename": "python_strtobool-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "ea9c03ec37699dce213168c8afa0347a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 5841,
            "upload_time": "2024-06-28T10:30:44",
            "upload_time_iso_8601": "2024-06-28T10:30:44.358047Z",
            "url": "https://files.pythonhosted.org/packages/3c/88/e84989e85aca194c9bcbf053985590376196a3d739b0afa8d4decac76875/python_strtobool-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-28 10:30:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sassanh",
    "github_project": "python-strtobool",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python-strtobool"
}
        
Elapsed time: 0.28607s