Use sum() with objects of any class
Project description
natsu
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
natsu-1.0.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
natsu-1.0.1-py3-none-any.whl
(2.6 kB
view hashes)