Skip to main content

Lowercase Booleans

Have you ever felt the need to use true and false in your Python program? Then this is the perfect module for you!

Installation

pip install lowercase_booleans

Usage

Just add this to the top of your Python file:

from lowercase_booleans import true, false

That's it, now you are good to go. Use lowercase booleans to your hearts content.

from lowercase_booleans import true, false


def contains(haystack, needle):
    for item in haystack:
        if item == needle:
            return true
    return false


print(contains(range(10), 5))
print(contains("boolean", "c"))

Tests

Simply run

pytest test.py

After all, we need to make sure that true is still true and false is still false. 100% statement coverage, 100% branch coverage and even 100% path coverage, guaranteed!

(Yes, this is satire in case you were wondering.)

Metadata

Release files for lowercase-booleans 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lowercase-booleans 1.0.0
File Size Uploaded
lowercase_booleans-1.0.0.tar.gz 1.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lowercase-booleans 1.0.0
File Interpreter ABI Platform
lowercase_booleans-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / lowercase_booleans-1.0.0.tar.gz

Download URL lowercase_booleans-1.0.0.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8f53c16a78b28d2cbd552107b7c69b609db9a5a0c1d933c29495bdbd9c318161
BLAKE2b-256 checksum
How to use checksums
c640e6c6d7f8ba39f2f855b4d662a381ad1af4cab366bc18d7445f6a348ec7ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Release files / lowercase_booleans-1.0.0-py3-none-any.whl

Download URL lowercase_booleans-1.0.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8d233a25436e823ddfd5acf52b4a1b6a44b75047351da3a1798b469de83ca2b
BLAKE2b-256 checksum
How to use checksums
f09295b2f7666a0f14d80755402a4ebc7fbb14bee184ff00d8d93aba55245225
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

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