Skip to main content

🐍 Python strtobool

Convert string to boolean value using str_to_bool function.

🛠 Usage

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

pip install python-strtobool

Poetry

poetry add python-strtobool

📜 License

This project is released under the Apache-2.0 License. See the LICENSE file for more details.

Metadata

Release files for python-strtobool 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-strtobool 1.0.3
File Size Uploaded
python_strtobool-1.0.3.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-strtobool 1.0.3
File Interpreter ABI Platform
python_strtobool-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / python_strtobool-1.0.3.tar.gz

Download URL python_strtobool-1.0.3.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b05e8a732025907e0ab900693cf574bb275d0ef3473e3255dbb2958e0db32e1b
BLAKE2b-256 checksum
How to use checksums
f74df4ae4d70c309cd1a1a20b4de4eb4e1f7c75a5e119120625cfc29e8417ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 13, 2024.

Transparency log

Release files / python_strtobool-1.0.3-py3-none-any.whl

Download URL python_strtobool-1.0.3-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9f6988be13660fbb451023fe2966aae423b48c8f67bd5948f7dc315184575d2
BLAKE2b-256 checksum
How to use checksums
604248f58917a897d3fab179294501fa751cbd520f61f498e6cb5d7abd112de5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 13, 2024.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page