lcpy, or lowercase values in Python, is a simple library that allows you to use values like
true instead of
True. 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.
PyPI Package: lc-py
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
* imports. You can import single values by doing:
# replace false with the value you want from 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:
Directly Using v2.0.0
I strongly suggest you don't use v2.0.0, instead opt for v2.0.1 or higher. v2.0.0 has broken links to documentation, and it helps for users to know what to read for more information about the library.
You can read the proposals written for this project here:
The source can be found on GitHub.