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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lowercase_booleans-1.0.0.tar.gz | 1.6 kB | Without provenance | Details for lowercase_booleans-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lowercase_booleans-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for lowercase_booleans-1.0.0-py3-none-any.whl |
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
|
Security for lowercase-booleans 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.