Fyrefly
A Quant based library to compute mathematical operations.
Installation
pip install fyrefly
Usage
from fyrefly import add, mul, div, mod
add(5, 4, 6, 10) # 25
mul(5, 4, 6, 10) # 1200
div(100, 5, 2) # 10.0
mod(17, 5) # 2
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 ... |
mod(*nos) |
Finds remainder left to right: first % second % third ... |
Development
pip install -e ".[dev]"
pytest
License
MIT
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 fyrefly-0.2.1.tar.gz.
File metadata
- Download URL: fyrefly-0.2.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
351455560dc95ab6f2f5cc79f6f3deea7946c0ce64d6b9dcc0845282e781776c
|
|
| MD5 |
3e68034989d3e42ec5fa32ff416aaff4
|
|
| BLAKE2b-256 |
f835284a197d59ce667733f3f0d103e1907ee19a143c6732906c86460a108c4c
|
Provenance
The following attestation bundles were made for fyrefly-0.2.1.tar.gz:
Publisher:
publish.yml on Ninad077/fyrefly
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fyrefly-0.2.1.tar.gz -
Subject digest:
351455560dc95ab6f2f5cc79f6f3deea7946c0ce64d6b9dcc0845282e781776c - Sigstore transparency entry: 2885870308
- Sigstore integration time:
-
Permalink:
Ninad077/fyrefly@b8dbc76291068fd324ec2f2652d9c76a7a3fe28d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/Ninad077
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b8dbc76291068fd324ec2f2652d9c76a7a3fe28d -
Trigger Event:
release
-
Statement type:
File details
Details for the file fyrefly-0.2.1-py3-none-any.whl.
File metadata
- Download URL: fyrefly-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f105384a92fb4a180a7fb89a5ec5046dda0f0321bc1b614a06f03ff84df8641d
|
|
| MD5 |
a7218c11842267cf445669625626f073
|
|
| BLAKE2b-256 |
57ecfece0c9884d7872b124596e99d8e0786a8a819054ce277225f10240cd561
|
Provenance
The following attestation bundles were made for fyrefly-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on Ninad077/fyrefly
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fyrefly-0.2.1-py3-none-any.whl -
Subject digest:
f105384a92fb4a180a7fb89a5ec5046dda0f0321bc1b614a06f03ff84df8641d - Sigstore transparency entry: 2885870376
- Sigstore integration time:
-
Permalink:
Ninad077/fyrefly@b8dbc76291068fd324ec2f2652d9c76a7a3fe28d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/Ninad077
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b8dbc76291068fd324ec2f2652d9c76a7a3fe28d -
Trigger Event:
release
-
Statement type: