Skip to main content

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


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)

Uploaded Source

Built Distribution

kindabool-1.0.0-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

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