Official Python SDK for the Numeratica financial-planning API — generated from the OpenAPI spec.
Project description
numeratica (Python SDK)
Official Python SDK for the Numeratica financial-planning API — retirement Monte Carlo, taxes, RMDs, Social Security, Roth conversions, and more. Fully typed, generated from the OpenAPI spec (never hand-written), so it never drifts from the API.
Get a free API key at docs.numeratica.com.
Install
pip install numeratica
Use
import os
from numeratica import AuthenticatedClient
from numeratica.api.default import retirement_monte_carlo
from numeratica.models import MonteCarloRequest
client = AuthenticatedClient(
base_url="https://api.numeratica.com",
token=os.environ["NUMERATICA_API_KEY"],
)
resp = retirement_monte_carlo.sync(
client=client,
body=MonteCarloRequest.from_dict({
"current_age": 40, "retirement_age": 65, "end_age": 95,
"current_balance": 500000, "annual_contribution": 30000, "annual_spending": 60000,
"expected_return": 0.06, "return_volatility": 0.12,
}),
)
print(resp.result.success_probability, resp.result_id)
Each endpoint is a module under numeratica.api.default, named from the operation's
operationId (tvm, tax_estimate, retirement_monte_carlo, medicare_irmaa, …), with
.sync(), .sync_detailed(), and .asyncio() variants. The key is sent as
Authorization: Bearer <token>.
Notes
The numeratica/ package is generated from api/openapi.yaml (make sdk-py in the main
repo) and must not be edited by hand. Requires Python ≥ 3.11. Docs & reference:
https://docs.numeratica.com.
MIT © Numeratica / Francis Townsend-Merino
Project details
Release history Release notifications | RSS feed
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 numeratica-1.0.0.tar.gz.
File metadata
- Download URL: numeratica-1.0.0.tar.gz
- Upload date:
- Size: 114.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed6354681e94392678cad6a4c4fee85dad176689699336abc681929caae7786b
|
|
| MD5 |
505bd1d1b6778340dfceddd79916710b
|
|
| BLAKE2b-256 |
2c7376e6c7beb1ab90528a15d6cf9e5e20ba95eba464e7254f36ecd11e28c240
|
File details
Details for the file numeratica-1.0.0-py3-none-any.whl.
File metadata
- Download URL: numeratica-1.0.0-py3-none-any.whl
- Upload date:
- Size: 310.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3808dbb0e8443dd1c957c7b5cd4070b3c248b443f5a9067cb3bd4bb284831fd
|
|
| MD5 |
390cbf5e7ecff67d1ad9e8f8d577d26c
|
|
| BLAKE2b-256 |
ec25964f86e4237dcc77eb50842ed5a029f5cae7d30dbfdf2dd34feb5f8ec4d6
|