Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

🐍 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.dev1241213103515210053

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.dev1241213103515210053
File Size Uploaded
python_strtobool-1.0.3.dev1241213103515210053.tar.gz 6.6 kB Details

Built distribution (wheel)

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

Total release size: 13.3 kB

Release files / python_strtobool-1.0.3.dev1241213103515210053.tar.gz

Download URL python_strtobool-1.0.3.dev1241213103515210053.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fa6ef9692bff3ace5ff7a288c03522b12e61407649d0171924a7558904018dc3
BLAKE2b-256 checksum
How to use checksums
ce8e77f461b1e703aa771eea4a81438dc36c4c1a9ef23e8d8828250272feae37
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.dev1241213103515210053-py3-none-any.whl

Download URL python_strtobool-1.0.3.dev1241213103515210053-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2bdc72892751918b906e4886c3cdea04b64e5db50fc671be61f0355d71e76d5
BLAKE2b-256 checksum
How to use checksums
a0841a90e40f2fdc369bff74b73ecf3c8a36a11ec39ee4583eeded6f71af2da2
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