Additional boolean values: KindaTrue, KindaFalse, VeryTrue, and VeryFalse. (This is a joke project.)
Project description
PyFuzzyBool
Additional boolean values: KindaTrue, KindaFalse, VeryTrue, and VeryFalse. (This is a joke project.)
Installation
To install with pip, run:
pip install pyfuzzybool
Quickstart Guide
>>> from pyfuzzybool import *
>>> KindaTrue == KindaFalse
True
>>> KindaTrue == True
False
>>> VeryTrue == True
True
>>> VeryFalse == False
True
>>> KindaFalse == False
False
>>> fuzzybool(1)
fuzzybool(True)
>>> fuzzybool(0.9)
KindaTrue
>>> fuzzybool(0)
fuzzybool(False)
>>> fuzzybool(-1)
VeryFalse
>>> fuzzybool(1.1)
VeryTrue
>>> fuzzybool()
KindaFalse
>>> KindaFalse < True
True
>>> KindaFalse > False
True
>>> KindaFalse <= KindaTrue
True
Contribute
If you'd like to contribute to PyFuzzyBool, check out https://github.com/asweigart/pyfuzzybool
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
PyFuzzyBool-0.1.1.tar.gz
(3.2 kB
view details)
File details
Details for the file PyFuzzyBool-0.1.1.tar.gz
.
File metadata
- Download URL: PyFuzzyBool-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f85da8cca7ff244e3a583ce13542fb87d76a65b0d22cb65c1801e69280a8a045 |
|
MD5 | c647913ca40d9bf14becd40d750ac4a3 |
|
BLAKE2b-256 | 88f0330f915885eb1cf43a6e85eea7c4c2ca1811e3d90cbd06d6497765944ec0 |