=====
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.
Raw data
{
"_id": null,
"home_page": "https://github.com/mmore500/nanto",
"name": "nanto",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "nanto",
"author": "Matthew Andres Moreno",
"author_email": "m.more500@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/72/b8/539dc78f8fee541b73f7f8a17e78c8a0b841e07623df1906f0137dcc128c/nanto-0.1.1.tar.gz",
"platform": "",
"description": "=====\nnanto\n=====\n\n\n.. image:: https://img.shields.io/pypi/v/nanto.svg\n :target: https://pypi.python.org/pypi/nanto\n\n.. image:: https://img.shields.io/travis/mmore500/nanto.svg\n :target: https://travis-ci.com/mmore500/nanto\n\n.. image:: https://readthedocs.org/projects/nanto/badge/?version=latest\n :target: https://nanto.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n\n\n\nnanto makes working with values that might be NaN safer and easier\n\n\n* Free software: MIT license\n* Documentation: https://nanto.readthedocs.io.\n\n\n\n.. code-block:: python3\n\n from nanto import isanan, nantonone, nantozero\n\n\n isanan(7.0) # False\n isanan('string') # False\n isanan(None) # False\n isanan(float('nan')) # True\n\n\n nanto(float('nan'), 'fallback') # returns 'fallback'\n nanto(1.7, 'fallback') # returns 1.7\n nanto(float('inf'), 'fallback') # returns inf\n nanto(None, 'fallback') # returns None\n nanto('hello', 'fallback') # returns 'hello'\n\n\n nantonone(float('nan')) # returns None\n nantonone(1.7) # returns 1.7\n nantonone(float('inf')) # returns inf\n nantonone(None) # returns None\n nantonone('hello') # returns 'hello'\n\n\n nantozero(float('nan')) # returns 0\n nantozero(1.7) # returns 1.7\n nantozero(float('inf')) # returns inf\n nantozero(None) # returns None\n nantozero('hello') # returns 'hello'\n\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n\n\n=======\nHistory\n=======\n\n0.0.0 (2022-02-22)\n------------------\n\n* First release on PyPI.\n\n\n",
"bugtrack_url": null,
"license": "MIT license",
"summary": "nanto makes working with values that might be NaN safer and easier",
"version": "0.1.1",
"project_urls": {
"Homepage": "https://github.com/mmore500/nanto"
},
"split_keywords": [
"nanto"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "60652b00b40b2e54ec5ee9351bb9f088dd7e7171ca7c6ca4557d850c9b1a9e51",
"md5": "bb6e6e3f6c2a1f40f82a96ad30b1a45c",
"sha256": "b7f438645fefc396cce248fc98486a61608e486de1d467971147e0f059902139"
},
"downloads": -1,
"filename": "nanto-0.1.1-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "bb6e6e3f6c2a1f40f82a96ad30b1a45c",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.6",
"size": 4373,
"upload_time": "2022-03-04T15:28:30",
"upload_time_iso_8601": "2022-03-04T15:28:30.781950Z",
"url": "https://files.pythonhosted.org/packages/60/65/2b00b40b2e54ec5ee9351bb9f088dd7e7171ca7c6ca4557d850c9b1a9e51/nanto-0.1.1-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "72b8539dc78f8fee541b73f7f8a17e78c8a0b841e07623df1906f0137dcc128c",
"md5": "73e0f9f4e79f83798ddd9caf86fc9add",
"sha256": "d0b60361babbf85e398bff53cf18437410a3e9b9eb94238759b2158b6ba1016d"
},
"downloads": -1,
"filename": "nanto-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "73e0f9f4e79f83798ddd9caf86fc9add",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 10171,
"upload_time": "2022-03-04T15:28:32",
"upload_time_iso_8601": "2022-03-04T15:28:32.489909Z",
"url": "https://files.pythonhosted.org/packages/72/b8/539dc78f8fee541b73f7f8a17e78c8a0b841e07623df1906f0137dcc128c/nanto-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-03-04 15:28:32",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mmore500",
"github_project": "nanto",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "nanto"
}