A modular mathematics library for fast and structured numerical operations in Python.
Project description
numshooter
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
0if 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61cd54256d661883270afac2a6e19c88ec304da37b1b309afca131a2e13cbbed
|
|
| MD5 |
67cd001bf003f1a71045b73b9c2f0ebd
|
|
| BLAKE2b-256 |
34dc9b1e76bb553daa525f2e61c37d5b3f664523511c03d8b6385b5c35129112
|
Provenance
The following attestation bundles were made for numshooter-0.1.4.tar.gz:
Publisher:
python-publish.yml on numshooter/numshooter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
numshooter-0.1.4.tar.gz -
Subject digest:
61cd54256d661883270afac2a6e19c88ec304da37b1b309afca131a2e13cbbed - Sigstore transparency entry: 1512811571
- Sigstore integration time:
-
Permalink:
numshooter/numshooter@d7c50df1c5a7b9aca21a392231f5414b15fa0a40 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/numshooter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d7c50df1c5a7b9aca21a392231f5414b15fa0a40 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1838d922b0c3b226579be1d4e537b56425f8c19bec0458dca0b1b5a1cce2f7f
|
|
| MD5 |
003277ac9d60179974561dd3c56beaa5
|
|
| BLAKE2b-256 |
5e6ba0ea6001eeb8b2e0d4d5b9b842b733e650ed424f05d577a95ce368d90e0f
|
Provenance
The following attestation bundles were made for numshooter-0.1.4-py3-none-any.whl:
Publisher:
python-publish.yml on numshooter/numshooter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
numshooter-0.1.4-py3-none-any.whl -
Subject digest:
a1838d922b0c3b226579be1d4e537b56425f8c19bec0458dca0b1b5a1cce2f7f - Sigstore transparency entry: 1512811826
- Sigstore integration time:
-
Permalink:
numshooter/numshooter@d7c50df1c5a7b9aca21a392231f5414b15fa0a40 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/numshooter
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d7c50df1c5a7b9aca21a392231f5414b15fa0a40 -
Trigger Event:
release
-
Statement type: