Skip to main content

Use sum() with objects of any class

Project description

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.

Project details


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)

Uploaded Source

Built Distribution

natsu-1.0.1-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page