Skip to main content

A modular mathematics library for fast and structured numerical operations in Python.

Project description

numshooter

numshooter's logo

numshooter is a modular math library for Python that provides fast, organized, and extensible numerical operations.

Designed to be simple and lightweight, numshooter separates functionality into clear modules such as arithmetic, powers, and root operations, making it easy to maintain and scale.

Overview

numshooter is:

  • A modular Python library
  • Engine to solve math operations
  • Anything you can imagine about numbers!

Installation

Run:

pip install numshooter

In the features section, you can see how to run each function.

Features

Add

Adds multiple numbers together using a flexible variadic interface.

  • Accepts any number of arguments (*args)
  • Returns 0 if no arguments are provided (additive identity)
  • Uses left-to-right accumulation
  • Supports integers and floats

Example:

add(1, 2, 3)  # 6
add()         # 0

Sub

Performs sequential subtraction from the first value.

  • First value is treated as the base
  • Each subsequent value is subtracted in order
  • Returns the single value if only one argument is given

Example:

sub(10, 2, 3)  # 5
sub(7)         # 7

Mul

Multiplies all provided numbers together.

  • Accepts any number of arguments
  • Returns 1 if no arguments are provided (multiplicative identity)
  • Uses iterative multiplication Example:
mul(2, 3, 4)  # 24
mul()         # 1

Div

Performs sequential division from left to right.

  • First value is the numerator base
  • Each next value divides the current result
  • Raises ZeroDivisionError if any divisor is zero

Example:

div(8, 2, 2)  # 2.0
div(9)        # 9

Philosophy

numshooter prioritizes:

  • Simplicity over complexity

  • Modular design over monoliths

  • Readability over over-optimization

  • Extensibility for future math domains

License

numshooter uses MIT license. See more details at our license file.

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

numshooter-0.1.4.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numshooter-0.1.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file numshooter-0.1.4.tar.gz.

File metadata

  • Download URL: numshooter-0.1.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for numshooter-0.1.4.tar.gz
Algorithm Hash digest
SHA256 61cd54256d661883270afac2a6e19c88ec304da37b1b309afca131a2e13cbbed
MD5 67cd001bf003f1a71045b73b9c2f0ebd
BLAKE2b-256 34dc9b1e76bb553daa525f2e61c37d5b3f664523511c03d8b6385b5c35129112

See more details on using hashes here.

Provenance

The following attestation bundles were made for numshooter-0.1.4.tar.gz:

Publisher: python-publish.yml on numshooter/numshooter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file numshooter-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: numshooter-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for numshooter-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a1838d922b0c3b226579be1d4e537b56425f8c19bec0458dca0b1b5a1cce2f7f
MD5 003277ac9d60179974561dd3c56beaa5
BLAKE2b-256 5e6ba0ea6001eeb8b2e0d4d5b9b842b733e650ed424f05d577a95ce368d90e0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for numshooter-0.1.4-py3-none-any.whl:

Publisher: python-publish.yml on numshooter/numshooter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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