Skip to main content

Booleanify

Inspired by Pydantic's boolean, Booleanify is a Python package that provides a simple utility for converting strings representing boolean values into actual boolean values.

Installation

You can install Booleanify using pip:

pip install booleanify

Usage

To use Booleanify in your Python code, simply import the booleanify function and pass a string representing a boolean value to it. The function will return the corresponding boolean value.

from booleanify import booleanify

result = booleanify("T")
print(result)  # Output: True

result = booleanify("false")
print(result)  # Output: False

Booleanify supports the following string representations for boolean values:

Input Output
1 True
'1' True
'on' True
't' True
'true' True
'y' True
'yes' True
0 False
'off' False
'f' False
'false' False
'n' False
'no' False

Contribution

If you have any suggestions, improvements, or issues regarding Booleanify, feel free to open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for booleanify 0.1.1

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

Source distribution (sdist)

Source distribution for booleanify 0.1.1
File Size Uploaded Provenance Actions
booleanify-0.1.1.tar.gz 5.7 kB Without provenance Details for booleanify-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for booleanify 0.1.1
File Interpreter ABI Platform Actions
booleanify-0.1.1-py3-none-any.whl Python 3 none any Details for booleanify-0.1.1-py3-none-any.whl

Total release size: 12.2 kB

Release files / booleanify-0.1.1.tar.gz

Download URL booleanify-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b27582b9c89b6fc9c39cca0138490d2e29fd89ba745ed1198e1e3770bbaa5854
BLAKE2b-256 checksum
How to use checksums
19b0f6c99dfcf69f3236f4894d79d920f019e11809ba108122c4265a045479bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.11.9 Linux/5.4.0-169-generic

Release files / booleanify-0.1.1-py3-none-any.whl

Download URL booleanify-0.1.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8be1fe3fd7b4ce1d1bb7abc83b54a51547b0130f8734cc0a00a35ec211a2c204
BLAKE2b-256 checksum
How to use checksums
cec9ade70b88e7641a9513c70c57d1003d08ca367582576afe709d534d048fae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.11.9 Linux/5.4.0-169-generic

Security for booleanify 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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