Fyrefly
A quant-based library to compute mathematical operations and run SQL queries on your data.
Installation
pip install fyrefly
Usage — Math functions
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)
Usage — Data functions
from fyrefly import load, loadh, loadc, loads, sql, xtract
c = load("data.csv") # loads a CSV/Excel/Google Sheet, previews it
loadh(c) # preview column headers
loadc(c) # preview record count
loads(c) # preview schema (columns + datatypes)
d = sql("select * from c where age > 30") # run ANY SQL query on loaded data
xtract(d) # export the result to CSV
xtract(sql("select * from c"), filename="all.csv") # chained form also works
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 ... |
load(path) |
Loads a CSV/Excel/Google Sheet into a DataFrame and previews it |
loadh(df) |
Previews just the column headers |
loadc(df) |
Previews the record count |
loads(df) |
Previews the schema (columns + datatypes) |
sql(query) |
Runs any SQL query against a loaded DataFrame, by variable name |
xtract(df, filename=None) |
Exports a DataFrame to CSV in the current directory |
Development
pip install -e ".[dev]"
pytest
License
MIT
Release files for fyrefly 0.3.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.3.0.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fyrefly-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.5 kB
Release files / fyrefly-0.3.0.tar.gz
| Download URL | fyrefly-0.3.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec5f889fa9ef47cef1f04762ea3a80a728be80329b21e05fae77e2fc83ba7d18
|
|
BLAKE2b-256 checksum How to use checksums |
36da4248b88a56afd54b3e0f4791f865c8bf7e34a4ad641bb33e8d76396989cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / fyrefly-0.3.0-py3-none-any.whl
| Download URL | fyrefly-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d2f4b5be47bf0befd5ca7ff36a0cb49ddd09742114fdcb6552d2abab9ff898e
|
|
BLAKE2b-256 checksum How to use checksums |
fc3f91375f200cbdb0f73f6c98dbee3ed2bf9fc17f3fa949eec65a8a459d511a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency log