WolframAlphaAPIWrapper

WolframAlphaAPIWrapper(**data: Any)

Wrapper for Wolfram Alpha.
Docs for using:
1. Go to wolfram alpha and sign up for a developer account 2. Create an app and get your APP ID 3. Save your APP ID into WOLFRAM_ALPHA_APPID env variable 4. pip install wolframalpha

Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.

Parameters:
NameDescription
**dataType: Any

Class Attributes

model_config



wolfram_alpha_appid



wolfram_client


:meta private:

Static Methods

validate_environment

validate_environment(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs

Instance Methods

run

run(self, query: str) -> tuple[str, bool]

Run query through WolframAlpha and parse result.

Parameters:
NameDescription
queryType: str