problemator

WolframAlpha's Unlimited AI-generated practice problems and answers API wrapper.


Keywords
api-wrapper, math, mathematics, python-wrapper, python-wrapper-api, wolfram-alpha, wrapper-api
License
MIT
Install
pip install problemator==1.0.5

Documentation

problemator - WolframAlpha's Unlimited AI-generated practice problems and answers API wrapper.


-How to use-

from problemator import *
from random import choice

loadSession()  # Initialize
print(getCategories())  # See categories

category = getCategoryByID(0)  # Get Addition by ID
category = getCategoryByName('Add')  # Get Addition by Name

# LVL: 0 - Beginner; 1 - Intermediate; 2 - Advanced
# Count - Number of problems
# type - Category
problems = generateProblems(count=10, lvl=0, type=category)
problem = choice(problems)  # Get random problem

print(problem['text'])  # Text of the problem
print(problem['image'])  # Image of the problem
print(problem['difficulty'])  # Difficulty of the problem

c = checkProblem(problem, 'x+5')  # Check problem, where x+5 - answer
print(c['correct'])  # True or False
print(c['hint'])  # Image of the Hint
print(c['solution'])  # Image of the Solution