Easily run bash commands
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mini_bash-0.1.0.tar.gz.
File metadata
- Download URL: mini_bash-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.6 Darwin/24.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
847db49b63112f7401c03005762509707bdd245fedba8fe36874a79ec5c4bac3
|
|
| MD5 |
2f33bff2a8e653adf1618b6650196149
|
|
| BLAKE2b-256 |
b8c596f2f7d5a29afd30d1e54edaff3aea54bae2c93f914364f722069212c880
|
File details
Details for the file mini_bash-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mini_bash-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.6 Darwin/24.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90cdcc0da54c66ca1b716114463676e9fe2003bf90a64d80fef0b58f4b12b5f
|
|
| MD5 |
85839854e7a5609c49ecb6256bdf6f4e
|
|
| BLAKE2b-256 |
f019ef064aa6137108f2272c3c567077a54432c2614adc75a7fff84c78fce872
|