{"library":"nanto","title":"nanto","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install nanto"],"cli":null},"imports":["from nanto import nan","from nanto import is_nan","from nanto import not_nan","from nanto import coalesce","from nanto import Equality"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from nanto import nan, is_nan, not_nan, coalesce, Equality\n\n# Use nan as a sentinel value\nresult = nan\nprint(is_nan(result))  # True\nprint(not_nan(42))     # True\n\n# Coalesce: return first non-nan value\nvalue = coalesce(nan, nan, 5, nan)\nprint(value)  # 5\n\n# Use Equality enum for safe comparisons\nfrom nanto import Equality\nif Equality.NAN == Equality.NAN:\n    print(\"By convention, nan equals nan in nanto.\")","lang":"python","description":"Demonstrates basic usage of nanto: creating NaN sentinels, checking them, coalescing multiple values, and the Equality enum for NaN-safe comparisons.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}