Metadata-Version: 2.1
Name: nanto
Version: 0.1.1
Summary: nanto makes working with values that might be NaN safer and easier
Home-page: https://github.com/mmore500/nanto
Author: Matthew Andres Moreno
Author-email: m.more500@gmail.com
License: MIT license
Description: =====
        nanto
        =====
        
        
        .. image:: https://img.shields.io/pypi/v/nanto.svg
                :target: https://pypi.python.org/pypi/nanto
        
        .. image:: https://img.shields.io/travis/mmore500/nanto.svg
                :target: https://travis-ci.com/mmore500/nanto
        
        .. image:: https://readthedocs.org/projects/nanto/badge/?version=latest
                :target: https://nanto.readthedocs.io/en/latest/?badge=latest
                :alt: Documentation Status
        
        
        
        
        nanto makes working with values that might be NaN safer and easier
        
        
        * Free software: MIT license
        * Documentation: https://nanto.readthedocs.io.
        
        
        
        .. code-block:: python3
        
          from nanto import isanan, nantonone, nantozero
        
        
          isanan(7.0) # False
          isanan('string') # False
          isanan(None) # False
          isanan(float('nan')) # True
        
        
          nanto(float('nan'), 'fallback') # returns 'fallback'
          nanto(1.7, 'fallback') # returns 1.7
          nanto(float('inf'), 'fallback') # returns inf
          nanto(None, 'fallback') # returns None
          nanto('hello', 'fallback') # returns 'hello'
        
        
          nantonone(float('nan')) # returns None
          nantonone(1.7) # returns 1.7
          nantonone(float('inf')) # returns inf
          nantonone(None) # returns None
          nantonone('hello') # returns 'hello'
        
        
          nantozero(float('nan')) # returns 0
          nantozero(1.7) # returns 1.7
          nantozero(float('inf')) # returns inf
          nantozero(None) # returns None
          nantozero('hello') # returns 'hello'
        
        
        Credits
        -------
        
        This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
        
        .. _Cookiecutter: https://github.com/audreyr/cookiecutter
        .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
        
        
        =======
        History
        =======
        
        0.0.0 (2022-02-22)
        ------------------
        
        * First release on PyPI.
        
Keywords: nanto
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/x-rst
