No description
b88450b567
I often found myself writing code like if a.extension == 'png' and trying to remember if I'm supposed to compare against 'png' or '.png', and then it would trip up on files like A.PNG because I forgot to lower() it. So this class handles all that for you. You can == against it and it will use os.path.normcase to give you OS-appropriate case sens, and == works whether you include the dot or not. Then you can use ext.with_dot or ext.no_dot to get reliably dotted strings. |
||
---|---|---|
voussoirkit | ||
pypi_upload.bat | ||
README.md | ||
setup.py | ||
voussoirkit_logo.svg |
voussoirkit
This is a collection of tools that I use often and import into my other projects.
Install
pip install voussoirkit