/natsu

Use sum() with any Python object

Primary LanguagePythonMIT LicenseMIT

natsu

PyPI - Python Version PyPI PyPI - License Code style: Black

natsu allows you to sum() with Python objects of any class that implements __add__().

Installation

pip install natsu

Usage

from natsu import sum

sum(some_iterable)

natsu.sum() is fully backwards-compatible with the built-in sum() function.

License

natsu is licensed under the MIT License.