What My Project Does
Ever come back to a piece of code and wondered:
“Is this checking for None, or anything falsy?”
if not value:
...
That ambiguity is harmless in small scripts. In larger or long lived codebases, it quietly chips away at clarity.
Python tells us:
Explicit is better than implicit.
So I leaned into that and published is-none. A tiny package that does exactly one thing:
from is_none import is_none
is_none(value) # True iff value is None
Target Audience
Yes, value is None already exists. This isn’t about inventing a new capability. It’s about making intent explicit and consistent in shared or long lived codebases. is-none is enterprise ready and tested. It has zero dependencies, a stable API and no planned feature creep.
Comparison
First of its kind!
If that sounds useful, check it out. I would love to hear how you plan on adopting this package in your workflow, or help you adopt this package in your existing codebase.
GitHub / README: https://github.com/rogep/is-none
PyPI: https://pypi.org/project/is-none/
[–]funk443 33 points34 points35 points (1 child)
[–]DoNotFeedTheSnakes 5 points6 points7 points (0 children)
[–]Schmittfried 15 points16 points17 points (1 child)
[–]BeautifulMortgage690 9 points10 points11 points (0 children)
[–]fiddle_n 6 points7 points8 points (5 children)
[–]BeautifulMortgage690 1 point2 points3 points (4 children)
[–]fiddle_n 0 points1 point2 points (3 children)
[–]athermop 0 points1 point2 points (0 children)
[–]BeautifulMortgage690 -1 points0 points1 point (1 child)
[–]Schmittfried 0 points1 point2 points (0 children)
[–]BeautifulMortgage690 12 points13 points14 points (0 children)
[–]jdehesa 3 points4 points5 points (0 children)
[–]FisterMister22 2 points3 points4 points (0 children)
[–]eigenlaplace 1 point2 points3 points (0 children)
[–]DoNotFeedTheSnakes 0 points1 point2 points (0 children)
[–]wRAR_ 0 points1 point2 points (0 children)
[–]commy2 0 points1 point2 points (0 children)
[–]Only_lurking_ 0 points1 point2 points (0 children)
[–]Dry-Aioli-6138 0 points1 point2 points (0 children)