A python package for things that are only kinda true.
Project description
kindabool
Lets face it, the concept of a boolean is simply too outdated for the modern world. We need something more. We need something that can represent the complexity of the human condition.
We need kindabool.
With kindabool, you get 3 more options: KindaTrue
, Neutral
, and KindaFalse
.
Usage
You can either use the initiated variables, KindaTrue
, Neutral
, and KindaFalse
, or you can directly create a KindaBool
object.
from kindabool import * # usually a bad idea, but its kinda essential to the library
if True:
print("This will always be printed")
if KindaTrue:
print("This has a 75% chance of being printed")
if Neutral:
print("This has a 50% chance of being printed")
if KindaFalse:
print("This has a 25% chance of being printed")
if False:
print("This will never be printed")
if kindabool.kinda_bool.KindaBool(1): # constructor takes an int from 1-5
print("This will never be printed")
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
kindabool-1.0.0.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for kindabool-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d1f13ad570486f82c6dbe06a7058f6e791c1f494c811a418003a0720e02e344 |
|
MD5 | 81a3730f7cfd77c925052f2bdc05eb56 |
|
BLAKE2b-256 | d858ff177b6568b5e56409064fcce5259248c33f9033b74b1b12f7e871d67712 |