Using math-sdk with math.tools

Python integration

Install
pip install math-sdk
Quick start
import math-sdk

# Set your API key
client = math_sdk.Client(api_key="YOUR_API_KEY")
Get digits of pi (Ï€)
curl \
  -H "X-Mathtools-Api-Secret: $API_KEY" \
  https://api.math.tools/numbers/pi
Get the number of the day for current day
curl \
  -H "X-Mathtools-Api-Secret: $API_KEY" \
  https://api.math.tools/numbers/nod
Convert a given number from one base to another base
curl \
  -H "X-Mathtools-Api-Secret: $API_KEY" \
  https://api.math.tools/numbers/base
SDK on GitHub 📄 API Docs
SDK
math-sdk
Python
API
math.tools
math.tools
At a glance
Language Python
Endpoints26
Base URLhttps://api.math.tools