Skip to main content

worthune

Zero-dependency SDK for the Worthune Model API — 27 financial calculation models you can cite, audit, and trust. No API keys. Free with attribution.

Every model has a published spec, an independent second implementation that must agree with the first on 250 fuzzed cases before anything ships, and IRS/SSA constants traced to primary sources. Model changes are never silent: responses pin specVersion, and the changelog is public.

pip install worthune
from worthune import Worthune, verify_record

client = Worthune()

result = client.run("relocation", {
    "currentSalary": 95000, "newSalary": 108000,
    "currentMonthlyExpenses": 4200, "newMonthlyExpenses": 4900,
    "movingCosts": 6000, "currentSavings": 40000,
    "annualReturn": 0.07, "yearsHorizon": 10,
})

result["outputs"]["breakEvenMonths"]  # 16
result["specVersion"]                 # pinned contract version
result["facts"]                       # IRS/SSA constants used, with sources
result["sentinels"]                   # special values, explained
verify_record(result)                 # True — audit fingerprint checks out

API

  • client.list_models() — catalog with spec versions
  • client.get_contract(model) — machine-readable inputs/domains/sentinels
  • client.get_spec(model) — the full published spec (markdown)
  • client.run(model, inputs) — run; validation failures return {"ok": False, "errors": [...]} instead of raising
  • client.get_eval_dataset(model) — 250 verified input/expected-output pairs, the exact cases Worthune's dual-implementation CI verifies (ground truth for financial AI testing)
  • client.get_facts() — the sourced IRS/SSA constants registry
  • verify_record(response) — recompute the SHA-256 decision record to prove where numbers came from (byte-exact ECMAScript-compatible canonical JSON)

Retirement, FIRE, rent vs. buy, refinancing, equity comp (RSUs), debt payoff, Social Security timing, 529 plans, estate planning, and more — the full catalog lists all 27.

Fair use: 5,000 runs/month per app (a guideline, not a meter) — the free tier, in writing.

MIT licensed. The models, specs, and verification harness live behind the API at worthune.com.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

worthune-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

worthune-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file worthune-0.1.0.tar.gz.

File metadata

  • Download URL: worthune-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for worthune-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e05be097b45e2171eadaa3945f0ee887419234fe0adc49f0a6627ad25873c21e
MD5 ec446ace2a8a4646629c9a1c8800d077
BLAKE2b-256 c2b37236f2e7a9b96c25ee485e0499725b5098d2c9642eec9337d8677327f171

See more details on using hashes here.

File details

Details for the file worthune-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: worthune-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for worthune-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3fa0c677c577f781f2ab7e2e05d5c8d6a81c1f5742ed39c0ed785d8eca7d71bd
MD5 498460be58c3cf7855b57c864410f04e
BLAKE2b-256 7eef98c92abb93f11d082f001b38cd0f2885f356a627c48da0bfc86561a42a1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page