Skip to main content

a package to convert the input value to a boolean type

Project description

a package to convert the input value to a boolean type

Usage

pip install yors_pano_str_to_bool
from yors_pano_str_to_bool import to_bool

to_bool('true') # True
to_bool('false') # False
to_bool('enable') # True
to_bool('disable') # False
to_bool('1') # True
to_bool('0') # False
to_bool(True) # True
to_bool(False) # False

author

ymc-github ymc.github@gmail.com

license

MIT or APACHE-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yors_pano_str_to_bool-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yors_pano_str_to_bool-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file yors_pano_str_to_bool-1.0.0.tar.gz.

File metadata

  • Download URL: yors_pano_str_to_bool-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.6 Windows/10

File hashes

Hashes for yors_pano_str_to_bool-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e77092b111b9bf4387087583c1037a89c1fb9a9b1512f3488cba74023db1a12
MD5 4097ef06de20b58e2de51d28518233ef
BLAKE2b-256 311be4ca94fff74eac691a640c53a89f3c464254721be9566227b97889478fe4

See more details on using hashes here.

File details

Details for the file yors_pano_str_to_bool-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yors_pano_str_to_bool-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41da313e36664d697cda66ccc74e3495f5d532070d40ef05351e15b52f3b217d
MD5 0457b0af368c42b925ef4821d21a6375
BLAKE2b-256 aad6eaa880f02fc1f5b5187ca4811332c022b6cd1bb9f5cbce97fb75eade2291

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page