History¶
v5.0.0¶
14 Feb 2021
Rewrote object model to load objects more automatically. API is mostly compatible, but there may be some rare uses that may need some adjustment. In particular, access to ‘children’ properties (‘pods’, ‘subpods’, ‘assumptions’, ‘warnings’) are exposed as loaded through their singular names (without transforms or defaults) but exposed as iterable (empty by default) through the plural names.
v4.3.0¶
14 Feb 2021
Added
Client.from_env()
to initialize a client loading the API key from the keyring or environment.#13:
Result
objects now resolve as False and return emptyinfo
andpods
attributes when query was unsuccessful.
v4.2.0¶
14 Feb 2021
#28: Adapt to support API change from
.plainText
to.plaintext
.Moved usage guide to source and published through the docs and validate the usage with doctests.
v4.1.0¶
17 Nov 2020
#21: Adapt to support API change from
.text
to.plainText
.Refreshed package metadata.
3.0¶
04 Sep 2016
Models now parse the results using xmltodict.
Changed parameter of
Client.query
fromquery
toinput
.Client.query
now accepts keyword arguments and parameters passed directly to Wolfram|Alpha as URL parameters.Result.pods
andPod.subpods
now returns an iterator and not a list.Pod
objects are no longer iterable. To access the subpods of a pod, simply use thePod.subpod
property.Result.tree
andPod.node
have been removed.Result
now additionally presents the new attributes:assumptions: An iterable of Assumptions.
warnings: An iterable of Warnings.
info: An iterable combining all Pods, Assumptions, and Warnings.
2.0¶
18 Jan 2016
pmxbot
plugin now requires that the “Wolfram|Alpha API key”
config parameter be supplied. The hard-coded key has been
removed and will be de-activated. Users must register for their
own key at the Wolfram|Alpha developer web site.
Additionally, the tests now no longer bundle a hard-coded API
key. Instead, to run the tests, one must supply a
WOLFRAMALPHA_API_KEY
environment variable.