Fyrefly
Simple, flexible functions to add, multiply, and divide any count of numbers.
Installation
pip install fyrefly
Usage
from fyrefly import add, mul, div
add(5, 4, 6, 10) # 25
mul(5, 4, 6, 10) # 1200
div(100, 5, 2) # 10.0
Each function accepts any number of arguments:
add(1) # 1
add(1, 2, 3, 4, 5) # 15
mul() # 1 (identity)
Functions
| Function | Description |
|---|---|
add(*nos) |
Adds all given numbers |
mul(*nos) |
Multiplies all given numbers |
div(*nos) |
Divides left to right: first ÷ second ÷ third ... |
Development
pip install -e ".[dev]"
pytest
License
MIT
Release files for fyrefly 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fyrefly-0.1.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fyrefly-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.4 kB
Release files / fyrefly-0.1.0.tar.gz
| Download URL | fyrefly-0.1.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f2670baf6a7ba503e7570eed6453b9be1de3bad6210249c965d72e674c503a5
|
|
BLAKE2b-256 checksum How to use checksums |
d4a3526b59e5a1c14ff11d1a71f676678796a5bbd0db0314f4623c9e69fb66aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Release files / fyrefly-0.1.0-py3-none-any.whl
| Download URL | fyrefly-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e67e11594103cbc5be846302facb13962dd82891ad098034a61346c5c82f512
|
|
BLAKE2b-256 checksum How to use checksums |
005b19b1121ae2e17d5ba67e8d6f49961a9752ff39328fe3fba771494f473dbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|