lowercase booleans for python
Project description
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.)
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
Built Distribution
File details
Details for the file lowercase_booleans-1.0.0.tar.gz
.
File metadata
- Download URL: lowercase_booleans-1.0.0.tar.gz
- Upload date:
- Size: 1.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f53c16a78b28d2cbd552107b7c69b609db9a5a0c1d933c29495bdbd9c318161 |
|
MD5 | 98e1ffd285fd32f1297ee90615969bb3 |
|
BLAKE2b-256 | c640e6c6d7f8ba39f2f855b4d662a381ad1af4cab366bc18d7445f6a348ec7ec |
File details
Details for the file lowercase_booleans-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: lowercase_booleans-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8d233a25436e823ddfd5acf52b4a1b6a44b75047351da3a1798b469de83ca2b |
|
MD5 | 720644ca4ab1fd336c264ab5f978edd9 |
|
BLAKE2b-256 | f09295b2f7666a0f14d80755402a4ebc7fbb14bee184ff00d8d93aba55245225 |