Registry / data / nanto
library0.1.1pypypiunverified

nanto makes working with values that might be NaN safer and easier. It provides utilities to detect, handle, and avoid NaN pitfalls. Current version: 0.1.1. Release cadence: irregular.

pip install nanto
INSTALL
IMPORT
SIG · NANTO
N
nanto
datapythonv0.1.1
Install
1.6s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.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.")
Debug
Known issues
gotchaThe 'nan' sentinel is a singleton, but using 'is' for comparison may be unreliable across imports. Always use 'is_nan()' or 'not_nan()' for checking NaN values.
fix
Use 'is_nan(value)' instead of 'value is nan'.
affects: all
deprecatedNo deprecations known; library is early stage.
affects: 0.1.1
breakingNo breaking changes known yet.
affects: 0.1.1
Upgrade
Version history
0.1.1latest on PyPI · released Mar 4, 2022
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
nanto — pip install nanto · libregistry