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() 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.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: natsu-1.0.0.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-1034-azure

File hashes

Hashes for natsu-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2f98dfd3544304092871019136580e32dc81205bcce19beb6fd25d2f935499c9
MD5 2a1ebcdfded0dd7bd54d90dd490f1399
BLAKE2b-256 8217103da19086052c8a3e6577680cd4fbe9f66ad80a5553d91108eebefe984e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: natsu-1.0.0-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-1034-azure

File hashes

Hashes for natsu-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6a769f4f0d224a8fc5ceb446d99125a0b9d5881e8b1848a5ba4fd739d4404f3
MD5 beee83862082fc103a68afd8928bb50d
BLAKE2b-256 7fa73ed30d735b6d3b46c891be9c82719546761c7f57e57968a0ece33d878e67

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