Skip to main content
Documentation Status https://github.com/MacHu-GWU/tt4human-project/workflows/CI/badge.svg https://codecov.io/gh/MacHu-GWU/tt4human-project/branch/main/graph/badge.svg https://img.shields.io/pypi/v/tt4human.svg https://img.shields.io/pypi/l/tt4human.svg https://img.shields.io/pypi/pyversions/tt4human.svg https://img.shields.io/badge/Release_History!--None.svg?style=social https://img.shields.io/badge/STAR_Me_on_GitHub!--None.svg?style=social
https://img.shields.io/badge/Link-Document-blue.svg https://img.shields.io/badge/Link-API-blue.svg https://img.shields.io/badge/Link-Install-blue.svg https://img.shields.io/badge/Link-GitHub-blue.svg https://img.shields.io/badge/Link-Submit_Issue-blue.svg https://img.shields.io/badge/Link-Request_Feature-blue.svg https://img.shields.io/badge/Link-Download-blue.svg

Welcome to tt4human Documentation

📔 See Full Documentation HERE.

https://tt4human.readthedocs.io/en/latest/_static/tt4human-logo.png

A Truth Table is like a cheat sheet that helps us figure out if something is true or false based on certain “conditions”. We call a specific combination of conditions a “case.” The outcome, whether it’s true or false, is what we call the “target.”

Imagine you’re trying to decide whether or not you should go out. Two things could affect your decision: the weather and what time you wake up. So, in this situation, the weather and your wake-up time are the “conditions”. When you combine these conditions, like if it’s sunny and you woke up early, that combination is a “case.” And the big question of whether you should go out or not is your “target.” The Truth Table helps us organize all these cases and their outcomes to make decisions easier.

For example, we have two types of conditions: weather and get_up (when you get up). And we want to determine if you will go out. weather has two possible values: is_sunny and not_sunny. get_up has three possible values: before_10, 10_to_2, after_2. Below is the truth table:

weather     get_up      go_out
is_sunny    before_10   1
is_sunny    10_to_2     1
is_sunny    after_2     0
not_sunny   before_10   0
not_sunny   10_to_2     0
not_sunny   after_2     0

tt4human provides some tools to work with Truth Table in Python.

Install

tt4human is released on PyPI, so all you need is to:

$ pip install tt4human

To upgrade to latest version:

$ pip install --upgrade tt4human

Metadata

Release files for tt4human 0.3.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 tt4human 0.3.1
File Size Uploaded
tt4human-0.3.1.tar.gz 30.2 kB Details

Built distribution (wheel)

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

Total release size: 57.5 kB

Release files / tt4human-0.3.1.tar.gz

Download URL tt4human-0.3.1.tar.gz
Size 30.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4345540e8833e67b412f73d86e877ca904a1e56349032937b048676541e6b0ea
BLAKE2b-256 checksum
How to use checksums
109389058b094c4b59ed4fbeb37c9ba4657c7443fef3c1ba3040668a5d5d9520
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.13

Release files / tt4human-0.3.1-py3-none-any.whl

Download URL tt4human-0.3.1-py3-none-any.whl
Size 27.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b57076592cdb0a47544eed951e78fc7250fa0712031658d89b19b32025cca680
BLAKE2b-256 checksum
How to use checksums
bdffad03b97e141b89079e084ac48b208fce973752ce7522d4f4befbb5d2a03a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.13

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.1

2 release files

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