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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file natsu-1.0.1.tar.gz.

File metadata

  • Download URL: natsu-1.0.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1033-azure

File hashes

Hashes for natsu-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0e1dfec02d604736a544e55d4b25ae8aa919bf1fb810ac52e438c994022737e5
MD5 86fc28206ebddd38e93ac7d808b2b9c9
BLAKE2b-256 4b698a3623769038f2365ed5512db57b8d204bac6fa28a51528201b98150af29

See more details on using hashes here.

File details

Details for the file natsu-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: natsu-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.1 Linux/5.15.0-1033-azure

File hashes

Hashes for natsu-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31ccb91916d0f79616e96e62e69c20dc5aff07f5be213b43017e7ce61ce81e72
MD5 f89ba37f8eec10d807d320041cb1bace
BLAKE2b-256 0ca3d075a13361fab5ef5f7964648fd2c63d78ddc0f42f7e62eaced19d2e3ac9

See more details on using hashes here.

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