Install & Compatibility
Where this runs
tested against v0.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
isnan
✓ from nanto import isnan
✗ from nanto import nan
nanto
✓ from nanto import nanto
nantonone
✓ from nanto import nantonone
Demonstrates basic usage of nanto: creating NaN sentinels, checking them, coalescing multiple values, and the Equality enum for NaN-safe comparisons.
from nanto import nan, is_nan, not_nan, coalesce, Equality
# Use nan as a sentinel value
result = nan
print(is_nan(result)) # True
print(not_nan(42)) # True
# Coalesce: return first non-nan value
value = coalesce(nan, nan, 5, nan)
print(value) # 5
# Use Equality enum for safe comparisons
from nanto import Equality
if Equality.NAN == Equality.NAN:
print("By convention, nan equals nan in nanto.")
Upgrade
Version history
0.1.1latest on PyPI · released Mar 4, 2022
Audit
Dependencies
No dependency data recorded yet.