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.dev3241213103541005048

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

Built distribution (wheel)

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

Total release size: 13.3 kB

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

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

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