xfingine
Python bindings for Xfingine — pure computation engines for personal finance planning.
Data in, arithmetic, data out. No UI, no network, no clock — the same input always produces the same output.
pip install xfingine
Usage
import xfingine
result = xfingine.compute_emi({
"mode": "emi", # "emi" | "tenure" | "loanAmount"
"loanAmount": 5_000_000,
"months": 240,
"interestRate": 9, # percent per year
"inflationRate": 6, # percent per year
"start": "2026-01", # optional, enables dates + per-year breakdown
})
result["emi"] # 44986 — the monthly payment
result["totals"]["nominalPaid"] # 10796818 — rupees actually debited
result["totals"]["realPaid"] # 6391327 — the same, in 2026 rupees
len(result["schedule"]) # 240 rows, month by month
len(result["years"]) # 20 rows, one per calendar year
Straight into a DataFrame:
import pandas as pd
df = pd.DataFrame(result["schedule"])
df[["year", "month", "emi", "principal", "interest", "realEmi"]].head()
There is a _json twin of every function for string in / string out:
xfingine.compute_emi_json('{"mode":"emi","loanAmount":5000000,"months":240,"interestRate":9}')
Invalid input raises ValueError with a readable message:
xfingine.compute_emi({"mode": "tenure", "loanAmount": 5_000_000,
"emi": 1000, "interestRate": 12})
# ValueError: monthly payment of 1000.00 does not cover the first month's
# interest of 50000.00; the loan would never be repaid
Conventions
- Money comes back as whole rupees (
int). - Rates are percentages, not fractions:
9means 9%. - All keys are
camelCase. - Omit
startand the engine reads no calendar — schedule rows carry no dates andyearsis empty.
Full documentation: github.com/sakthipriyan/xfingine
License
Apache-2.0
Release files for xfingine 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xfingine-0.0.2.tar.gz | 157.4 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| xfingine-0.0.2-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| xfingine-0.0.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| xfingine-0.0.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| xfingine-0.0.2-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details |
| xfingine-0.0.2-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details |
Total release size: 1.6 MB
Release files / xfingine-0.0.2.tar.gz
| Download URL | xfingine-0.0.2.tar.gz |
|---|---|
| Size | 157.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9bc74d3bc4b0d228e3a2502f234d14992e4e7ef87dd91ac6d8ae02a63b5159b8
|
|
BLAKE2b-256 checksum How to use checksums |
6bf5dfa58474c5c2fcbff6533e786751edbdee181258ce38c30f7506943a0099
|
| 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 Aug 27, 2026.
Transparency logRelease files / xfingine-0.0.2-cp38-abi3-win_amd64.whl
| Download URL | xfingine-0.0.2-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 189.2 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4a3d619a8b40b0ddc4878630c05d113f4642242c5f0bc05219a1572468d81f00
|
|
BLAKE2b-256 checksum How to use checksums |
53c8808a8a85a392006b79691e923e81846258caf270c775f237b416b811a34d
|
| 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 Aug 27, 2026.
Transparency logRelease files / xfingine-0.0.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | xfingine-0.0.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 335.2 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
cb3d2d212ebddb32075aaa71faa340c87016741de7c42b96ed640ae2cc90a98e
|
|
BLAKE2b-256 checksum How to use checksums |
03d5a6d6c7f55f336e1c6fa7678e6cd51e569dfb94c7e8dd2061f480f20aa1e0
|
| 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 Aug 27, 2026.
Transparency logRelease files / xfingine-0.0.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | xfingine-0.0.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 325.2 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
80632f0483ff6646954e948bcd210c0b142f9005e3387fb9e1299c630ded0dcc
|
|
BLAKE2b-256 checksum How to use checksums |
4f70d9f2d344a3c470b107b7dde92af68ab7a9cfa356614658641951ae1f650b
|
| 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 Aug 27, 2026.
Transparency logRelease files / xfingine-0.0.2-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | xfingine-0.0.2-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 288.3 kB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c9335f5a2e461e0fa9afd89dddb01d7107280b66631ebc21b5172c08ee1aa3db
|
|
BLAKE2b-256 checksum How to use checksums |
789889ea83339e2964f56fbc73881909e5eeebf60e1c5dcf9ca83e51e76774eb
|
| 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 Aug 27, 2026.
Transparency logRelease files / xfingine-0.0.2-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | xfingine-0.0.2-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 292.7 kB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
4836195ad92cefe2668d156a476820f119beee6933899a5890c2de8ab07eb029
|
|
BLAKE2b-256 checksum How to use checksums |
157933d7f65cae9a8bf45ff41acaa61de14c2fd0009f59fc8dcd21e453b13de6
|
| 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 Aug 27, 2026.
Transparency log