PyPI Package lc-py
lcpy, or lowercase values in Python, is a simple library that allows you to use values like
true instead of
I created this when I was teaching a student Python who kept forgetting to put in proper uppercase letters.
It is super simple, and has very few drawbacks.
The name of the package on PyPI is
lcpy was already taken!)
To use the library, you will first need to put this at the top of any Python files that you want to use the lowercase values in:
from lcpy import *
and that is basically it, you can now use it.
Some static analysis tools don't enjoy it when you use
You can import single values by doing:
# replace false with the value you wantfrom lcpy import false
If you read the usage section and now have a basic understanding, here are the values you can use:
exception(new in v1.1.0)
The following values can only be used in
v2.0.0 and above:
You can read the proposals written for this project here:
The source can be found on GitHub.